由买买提看人间百态

topics

全部话题 - 话题: kernel
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
t**********s
发帖数: 930
1
还是不明白啊。
这不是用自己定义自己吗?
一般Java类的定义里出现的变量都定义成其他除这个类之外的类型。
比如我们可以说蛇就是象绳子样的东西。我们不说蛇象蛇,这等于白说。
我的Java水平有限,请高人指点。
我现在正上Operating System这门课,其中的Nachos project 这种现象出现好几次.
public abstract class Kernel {
/** Globally accessible reference to the kernel. */
public static Kernel kernel = null;
/**
* Allocate a new kernel.
*/
public Kernel() {
// make sure only one kernel is created
Lib.assertTrue(kernel == null);
kernel = this;
}
public abstract void initialize(St
v*****r
发帖数: 1119
2
来自主题: Linux版 - Linux is a bastard
组里请的一个 consultant, 非要给大家做 how to use debugger 的 presentation,
不禁想起了 Linux 的 I am a bastard 的宣言.
http://lists.insecure.org/linux-kernel/2000/Sep/1177.html
Subject: Re: Availability of kdb
From: Linus Torvalds (t******[email protected])
Date: Sep 06 2000
On Wed, 6 Sep 2000, Tigran Aivazian wrote:
> very nice monologue, thanks. It would be great to know Linus' opinion.
> I mean, I knew Linus' opinion of some years' ago but perhaps it
> changed? He is a living being and not some set of rules written i... 阅读全帖
d*******s
发帖数: 65
3
来自主题: Linux版 - android 内核编译
没搞过NFC,不清楚,不过觉得kernel里面应该差不多。
Touch Driver:
1. 把driver *.c文件放到/kernel/drivers/input/touchscreen/
*.h文件放到/kernel/include/linux/* (*是啥取决于*.c里面include怎么写,
如果是那就放到linux/,如果是
,那就放到linux/input/)
2. 写Makefile. 编辑/kernel/drivers/input/touchscreen/Makefile,有样学
样把你touch driver的信息放进去。
3. 写defconfig。编辑/kernel/arch/arm/configs/msm_defconfig,有样学样把
你touch driver config写成y。这里假定你的Android跑在arm的chip上,如果是64位的
arm,那么改成arm64,如果是其他的,那再相应的改。msm_def... 阅读全帖

发帖数: 1
4
来自主题: Linux版 - FreeBSD越来越好用了
OS X(或者叫Mac OS)的内核代码应该是Mach kernel和BSD kernel的结合体,见OS X的
kernel architecture附图。实际上以前的苹果的Mac OS的内核都是直接继承了
NEXTStep的Mach kernel,Mach kernel是当年Unix的三大kernel(System V, BSD,
Mach)的流派之一,后来因为Mach kernel性能不好,才开始转向把BSD kernel也混合
进来的。所以严格地说,实际上OS X的内核只是部分借用了BSD,一部分还是Mach
kernel的老底子,所以以前叫做Mac OS不是没有道理。
p********a
发帖数: 5352
5
☆─────────────────────────────────────☆
ningyan (ningyan) 于 (Wed Aug 3 16:05:21 2011, 美东) 提到:
发信人: wcwyf (wcwyf), 信区: CS
标 题: Re: 生物转CS,大家觉得应该转吗
发信站: BBS 未名空间站 (Wed Jun 8 18:27:43 2011, 美东)
你这个基础学CS会很痛苦的。拿统计硕士吧,那个相对好对付。

☆─────────────────────────────────────☆
adgang (九戒之重出江湖) 于 (Wed Aug 3 16:06:16 2011, 美东) 提到:
看爱好了
编程是可以练出来的
☆─────────────────────────────────────☆
ningyan (ningyan) 于 (Wed Aug 3 23:28:18 2011, 美东) 提到:
这年头编程的门槛已经很低了,统计还被CS鄙视,ft死了
☆────────────────────────────... 阅读全帖
y******n
发帖数: 47
6
来自主题: JobHunting版 - 面经+一点个人体会
周五面完最后一个onsite, 累的惨兮兮的, 好容易爬回家. 不管结果如何, 这段时间找
工作算是告一段落了.
下面把这段时间面试中被问到的题目整理一下, 供大家参考. 我也就不说具体是那些公
司了, 都是很典型的面试题, 到哪里都有可能会被问到.
* implement memcpy? How to improve? how to determine if a system is
32bit or 64bit?
* how is static keyword used in Java?
* a list of intervals, no overlapping and sorted, write a function to
insert an interval into the list and still keep the list sorted and no
overlapping.
* given a function on sorted dictionary to retrieve word by index,
string getWord(int i), how to i... 阅读全帖
y******o
发帖数: 921
7
就这2天出的问题,一开3D游戏就蓝屏,显卡是nvidia quadro 1000m,用ThinkVantage
Toolbox检测显示所有硬件都正常,各硬件驱动也都是最新的。用Bluescreenview分析
,基本所有蓝屏原因都指向ntoskrnl.exe。求各位大神帮忙。下面是蓝屏的记录,先在
这里谢过。
==================================================
Dump File : 050312-15272-01.dmp
Crash Time : 5/3/2012 10:25:00 PM
Bug Check String : BAD_POOL_CALLER
Bug Check Code : 0x000000c2
Parameter 1 : 00000000`00000099
Parameter 2 : fffffa80`108635d0
Parameter 3 : 00000000`00000000
Parameter 4 : 00000000`00... 阅读全帖
m*******i
发帖数: 362
8
不太同意
如果你说的kernel是特指linux kernel,那是的,wsl不是真的linux kernel。
但wsl实现了linux kernel apis,可以调用nt kernel, 如果真的需要,也可以内置
linux kernel以供调用。这个灵活度和潜在扩展能力,cygwin这类wrapper是比不了的
,vm当然从功能上比目前的wsl要全,但缺点也很明显。
所以大趋势就是
1. vm朝着subsystem of host OS方向发展,这个受限于宿主OS开发者是否允许
2. OS改进自己的kernel,兼容多个版本的kernel,比如linux,NT。这个受限于多个阵
营的利益冲突,比如ubuntu不会轻易让软软这么干。真这么干了,谁还用ubuntu。。。
当然,软软如果有必要可以把ubuntu买了,这个就是后话了
想想mac为什么那么多人买,很大一部分人是因为他既是unix体系下系统,又具有优秀
的GUI,这不就是wsl未来会具有的么
m*******i
发帖数: 362
9
不太同意
如果你说的kernel是特指linux kernel,那是的,wsl不是真的linux kernel。
但wsl实现了linux kernel apis,可以调用nt kernel, 如果真的需要,也可以内置
linux kernel以供调用。这个灵活度和潜在扩展能力,cygwin这类wrapper是比不了的
,vm当然从功能上比目前的wsl要全,但缺点也很明显。
所以大趋势就是
1. vm朝着subsystem of host OS方向发展,这个受限于宿主OS开发者是否允许
2. OS改进自己的kernel,兼容多个版本的kernel,比如linux,NT。这个受限于多个阵
营的利益冲突,比如ubuntu不会轻易让软软这么干。真这么干了,谁还用ubuntu。。。
当然,软软如果有必要可以把ubuntu买了,这个就是后话了
想想mac为什么那么多人买,很大一部分人是因为他既是unix体系下系统,又具有优秀
的GUI,这不就是wsl未来会具有的么
k****u
发帖数: 43
10
来自主题: JobHunting版 - Google Team Matching 求建议 - OS方向
google里面做kernel的有至少三个组,人数从多到少
production kernel
chromeos kernel
android kernel
production kernel分好几个小组,各管一个subsystem,一共有八九十人,目前focus
是cloud,还有一些project不局限于linux
chromeos是其次做kernel比较多,但是主要是firmware和一些驱动,因为机器太小,不
用考虑scaling的问题
android人最少,好像就几个人在搞,基本上用的就是upstream的kernel
t**********s
发帖数: 930
11
菜鸟问题:
在定义一个类时为什么可以其中的变量就可以定义成这个类呢? The definition of
the class has not finished yet, hasn't it?
Like this:
// PART OF THE MACHINE SIMULATION. DO NOT CHANGE.
package nachos.machine;
/**
* An OS kernel.
*/
public abstract class Kernel {
/** Globally accessible reference to the kernel. */
public static Kernel kernel = null;
My question is:
The class definition of Kennel should only be used elsewhere outside this
defintion, shouldn't it?
Why kernel is of type Kernel?
Thanks!
y*****a
发帖数: 171
12
来自主题: Linux版 - gentoo amd64
gentoo 这么烂?fresh install,kernel 都不让我装?
Calculating dependencies -
!!! All ebuilds that could satisfy "sys-kernel/gentoo-sources" have been
masked.
!!! One of the following masked packages is required to complete your
request:
- sys-kernel/gentoo-sources-2.6.28-r2 (masked by: corruption)
- sys-kernel/gentoo-sources-2.6.28-r1 (masked by: corruption)
- sys-kernel/gentoo-sources-2.6.28 (masked by: corruption)
- sys-kernel/gentoo-sources-2.6.27-r9 (masked by: corruption)
- sys-kernel/gentoo-sources-2
w****g
发帖数: 597
13
来自主题: Linux版 - linux kernal "map"
very nice interactive kernel map.
Is this kernel map a GUI version of lxr.com kernel source code? I found many
map's sites link to lxr.com and other kernel web sites. This "map" brings
excitement when people browse kernel source codes in lxr.com.
Is there a key word search function in this kernel map? I cannot find search
function in kernel interactive map.
d********g
发帖数: 10550
14
在发行版稳定性控制上,我给个简单的类比:
Ubuntu (Linux,LTS版本):
kernel:pin在固定版本,只bugfix
base:pin在固定版本,只bugfix
app:pin在固定版本,只bugfix
换不同版本app:PPA(破坏系统完整性)
Gentoo (Linux):
kernel:自定义
base:自定义
app:自定义
换不同版本app:官方多版本(不破坏系统完整性)
Arch (Linux):
kernel:滚动
base:滚动
app:滚动
换不同版本app:自制或AUR(Arch没有系统完整性一说LOL)
CentOS (Linux):
kernel:pin在固定(老掉牙)版本,只bugfix
base:pin在固定(老掉牙)版本,只bugfix
app:pin在固定(老掉牙)版本,只bugfix
换不同版本app:EPEL等(破坏系统完整性)
FreeBSD (RELEASE版本):
kernel:pin在固定版本,只bugfix
base:pin在固定版本,只bugfix
... 阅读全帖
t**r
发帖数: 3428
15
LZ,
write a small kernel module. compile it and run it.
kmalloc smaller size than what you want to copy from user to kernel. call it
. see if kernel crash or oops or core-dump.
Then you will understand.
Also, this copy_from_user is architecture dependent implementation.
You don't need to think too much about it.
When you write kernel module or kernel code. always make sure you kmalloc
enough space.then there is no problem.
From man page, sounds like you should never copy more bytes from user spa... 阅读全帖
D**o
发帖数: 2653
16
来自主题: Mathematics版 - 关于煙花不堪剪
注意作者 \author{YHBKJ}
Atiyah-Bott Localization 1
2012-09-05 09:24:19
\documentclass[a4paper,12pt]{article}
\usepackage{amsfonts}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{CJK,graphicx}
\usepackage{amscd}
\usepackage{amssymb}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{lemma}{Lemma}[section]
\begin{document}
\title{\textbf{\Huge{Atiyah-Bott Localization 1}}}\author{YHBKJ}\date{}\
maketitle
\begin{ab... 阅读全帖
Z**i
发帖数: 5681
17
来自主题: pets版 - 请问Eukanuba的猫粮怎么样?
I won't buy it.
The 2nd item in the list is Brewers Rice...... Brewers Rice is really not
going to provide much nutrition. You can refer to:
http://en.wikipedia.org/wiki/Brewers_rice
Brewers rice is the small milled fragments of rice kernels that have been
separated from the larger kernels of milled rice. (AAFCO definition).[1]
Brewers rice is a processed rice product that is missing many of the
nutrients contained in whole ground rice and brown rice thus reducing the
quality[2]
Brewers rice and... 阅读全帖
y***d
发帖数: 2330
18
内核部件多,新内核,查无果,没什么奇怪的;从如下内容你能查出来么?
ar 14 05:31:35 ylsdd-laptop kernel: [10481.379906] CPU0 attaching NULL sched
-domain.
Mar 14 05:31:35 ylsdd-laptop kernel: [10481.379914] CPU1 attaching NULL
sched-domain.
Mar 14 05:31:35 ylsdd-laptop kernel: [10481.396120] CPU0 attaching sched-
domain:
Mar 14 05:31:35 ylsdd-laptop kernel: [10481.396126] domain 0: span 0-1
level MC
Mar 14 05:31:35 ylsdd-laptop kernel: [10481.396131] groups: 0 1
Mar 14 05:31:35 ylsdd-laptop kernel: [10481.396139] CPU1 attachin
N****w
发帖数: 21578
19
来自主题: Linux版 - 大牛帮忙看看吧!
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.0-oneiric/
http://www.ramoonus.nl/2011/05/linux-kernel-3-0-0-release-candi
后果自负
Installation Guide
Download the kernel headers package;
linux-headers-3.0.0-0300rc1_3.0.0-0300rc1.201105310830_all.deb
And the appropriate package for your system
linux-headers-3.0.0-0300rc1-generic_3.0.0-0300rc1.201105310830_amd64.deb
And the accompanying compiled kernel;
linux-image-3.0.0-0300rc1-generic_3.0.0-0300rc1.201105310830_amd64.deb
... 阅读全帖
l*****o
发帖数: 473
20
来自主题: Linux版 - question on mem management
I am trying to answer your questions. However, it is involved in some
complicated mechanism which I can't explain easily.
what happens to kernel when it tries to allocate a
block?
--If you are asking for a block of physical memory, then kernel will
allocate it from its buddy manager.
it seems that it is never a problem when you request large blocks
that are bigger than several pages, right?
---Sure, kernel can allocate a large block, but maybe less than 1024 pages.
This mechanism may change with... 阅读全帖
y****n
发帖数: 15
21
在32核的服务器上,运行一小段图像卷积的操作。输入是图像矩阵(按列),和一个y
方向上的卷积kernel。举例来说,如果kernel是[-0.5 0 0 0 1 0 0 0 0.5],那么下面
程序中的变量分别为
kernel: [-0.5 1 0.5]
szKernel: 3
step: 4
这段程序中使用了OpenMP对for循环执行并行操作。当使用>4个核时,程序运行速度反
而下降。这段程序要运行很多次,是整个程序的性能瓶颈,请大牛们指点一下该如何改
进。
double s = kernel[(szKernel-1)/2];
//#pragma omp parallel for
for (int k = 0; k < m*n; k++)
v_out[k] = v_in[k] * s;
for (int k = 0; k < (szKernel-1)/2; k++)
{
double s = kernel[k];
int offset = ((szKernel-1)/2 - k)*step;
... 阅读全帖
y****n
发帖数: 15
22
在32核的服务器上,运行一小段图像卷积的操作。输入是图像矩阵(按列),和一个y
方向上的卷积kernel。举例来说,如果kernel是[-0.5 0 0 0 1 0 0 0 0.5],那么下面
程序中的变量分别为
kernel: [-0.5 1 0.5]
szKernel: 3
step: 4
这段程序中使用了OpenMP对for循环执行并行操作。当使用>4个核时,程序运行速度反
而下降。这段程序要运行很多次,是整个程序的性能瓶颈,请大牛们指点一下该如何改
进。
double s = kernel[(szKernel-1)/2];
//#pragma omp parallel for
for (int k = 0; k < m*n; k++)
v_out[k] = v_in[k] * s;
for (int k = 0; k < (szKernel-1)/2; k++)
{
double s = kernel[k];
int offset = ((szKernel-1)/2 - k)*step;
... 阅读全帖
S*A
发帖数: 7142
23
来自主题: Programming版 - 谁能示范一个小的C程序
C++ 在 Linux 内核肯定没戏。
Linus 的话说,就是要把这种喜欢 C++ 烂人拦在 kernel 外面。
如果你要关心 C++ 生成的汇编代码是如何样子的话(kernel
的人经常要这样干),C++ 的确很糟糕。
http://harmful.cat-v.org/software/c++/linus
>
> When I first looked at Git source code two things struck me as odd:
> 1. Pure C as opposed to C++. No idea why. Please don't talk about
portability,
> it's BS.
*YOU* are full of bullshit.
C++ is a horrible language. It's made more horrible by the fact that a lot
of substandard programmers use it, to the point where it's much much
easier ... 阅读全帖
i**a
发帖数: 13
24
Do you have the correct kernel under /usr/src/linux?
BTW, are you sure Freeswan support 2.4.4 kernel?
I worked on it about 1.5 yrs ago.
Anyway, it needs to pache the kernel and recompile the kernel.

from 1 -3, this is to compile the kernel.
Are u sure u have right kernel and configured it correctly?
q****e
发帖数: 3
25
来自主题: Unix版 - 如何扩大内存limit?
请教了一些朋友,发现这样就行了:
(注意!!要recompile kernel, 要make sure原kernel备份到如/kernel.original,
若怕出问题可将你的所有东西备份,虽然理论上说即使新kernel不行,用原kernel也
能boot)
对FreeBSD:
1. cp /usr/src/sys/i386/conf/GENERIC MYNEWKERNEL
(若是alpha则是在/usr/src/sys/
alpha/conf/下)
2. 往MYNEWKERNEL中加:
options MAXDSIZ="(2048*1024*1024-1)"
options MAXSSIZ="(2048*1024*1024-1)"
options DFLDSIZ="(2048*1024*1024-1)"
注:Intelx86是32bit的, 只能支持到2G-1. alpha不知是否可更高。
3.按标准的kernel recompile and install的一套过程对MYNEWKERNEL做(即config
MYNEWKERNEL, make depend等等),然后重新boo
a*****n
发帖数: 230
26
I have been waiting for this for 10 years. But this noon, I saw this line:
The byte code compiler and interpreter now include new instructions that
allow many scalar subsetting and assignment and scalar arithmetic operations
to be handled more efficiently. This can result in significant performance
improvements in scalar numerical code.
I immediately downloaded the latest R build and benchmark against a KD-tree
code I wrote.
R Build from 20 days ago: 8.45 minutes
R build of today: 5.01 minutes
A... 阅读全帖
c****m
发帖数: 824
27
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: wannafree (wannafree), 信区: SanFrancisco
标 题: 大家看看阿三在onsite的时候怎么黑我的
发信站: BBS 未名空间站 (Sun Sep 29 15:08:12 2013, 美东)
最近面试一个与file system有关系的公司,junior的职位,onsite有俩阿三(总共5个
人)。
其中一个阿三非常严肃,黑着个脸,本来是安排和我一起吃午餐,他拒绝吃,我一边吃
,他一边问我问题。下面是面试过程中两个问题以及他对我的feedback:
问题一:为什么context switch有big overhead?
我的回答如下:
Because context switch needs to invalidate caches, flush TLB, registers, and
store process related data, which all require a lot of cpu cycles. The new
process also takes time t... 阅读全帖
c*****g
发帖数: 21627
28
【 以下文字转载自 Military 讨论区 】
发信人: ccccmm (*>_<*), 信区: Military
标 题: 大家看看阿三在onsite的时候怎么黑我的 (转载)
发信站: BBS 未名空间站 (Sun Sep 29 17:10:06 2013, 美东)
发信人: wannafree (wannafree), 信区: SanFrancisco
标 题: 大家看看阿三在onsite的时候怎么黑我的
发信站: BBS 未名空间站 (Sun Sep 29 15:08:12 2013, 美东)
最近面试一个与file system有关系的公司,junior的职位,onsite有俩阿三(总共5个
人)。
其中一个阿三非常严肃,黑着个脸,本来是安排和我一起吃午餐,他拒绝吃,我一边吃
,他一边问我问题。下面是面试过程中两个问题以及他对我的feedback:
问题一:为什么context switch有big overhead?
我的回答如下:
Because context switch needs to invalidate caches, flush TLB, regist... 阅读全帖
l********o
发帖数: 5629
29
来自主题: Family版 - 和印度人有没有未来
标 题: 大家看看阿三在onsite的时候怎么黑我的
发信站: BBS 未名空间站 (Sun Sep 29 15:08:12 2013, 美东)
最近面试一个与file system有关系的公司,junior的职位,onsite有俩阿三(总共5个
人)。
其中一个阿三非常严肃,黑着个脸,本来是安排和我一起吃午餐,他拒绝吃,我一边吃
,他一边问我问题。下面是面试过程中两个问题以及他对我的feedback:
问题一:为什么context switch有big overhead?
我的回答如下:
Because context switch needs to invalidate caches, flush TLB, registers, and
store process related data, which all require a lot of cpu cycles. The new
process also takes time to warm up the cache and TLB.
他后来的feedback是:我对context switch的基本概念不了解 。。。
问题... 阅读全帖
l*******y
发帖数: 1498
30
来自主题: JobHunting版 - 问个OS里面spin lock的问题。
我的理解是,当spin_lock()后,cpu是disable kernel preemption,当spin_unlock()
后,cpu enable kernel preemption. 所以当A进程spin_lock()后,只有等A的time
slice用完了才会让出CPU。在uniprocessor里,disable kernel preemption和用spin_
lock()效果是一样的,所以它就没用实际的spin_lock()而直接
disable kernel preemption。
这本书我看过,它没有专门说spin_lock()后会disable kernel preemption,只是说在
uniprocessor里会这样。我觉得在multi-processor,spin_lock()也会disable 当前
cpu的 preemption
r*******e
发帖数: 7583
31
来自主题: JobHunting版 - 有两道题不知怎答, 请大家帮忙
1)个人理解,Unix的memory space分为user space和kernel space
用户程序调用read()这个system call的时候,产生一个软中断
kernel的中断服务程序从设备读入数据到kernel space
然后调用 copy_to_user() 把数据copy到user space
同理,send()的本质和write()一样,先从user space复制到kernel space
然后再发送到network device
所以read()+send()至少要copy 4次
http://www.ibm.com/developerworks/linux/library/l-kernel-memory
http://www.makelinux.net/ldd3/chp-3-sect-7

more
c****m
发帖数: 824
32
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: wannafree (wannafree), 信区: SanFrancisco
标 题: 大家看看阿三在onsite的时候怎么黑我的
发信站: BBS 未名空间站 (Sun Sep 29 15:08:12 2013, 美东)
最近面试一个与file system有关系的公司,junior的职位,onsite有俩阿三(总共5个
人)。
其中一个阿三非常严肃,黑着个脸,本来是安排和我一起吃午餐,他拒绝吃,我一边吃
,他一边问我问题。下面是面试过程中两个问题以及他对我的feedback:
问题一:为什么context switch有big overhead?
我的回答如下:
Because context switch needs to invalidate caches, flush TLB, registers, and
store process related data, which all require a lot of cpu cycles. The new
process also takes time t... 阅读全帖
z****g
发帖数: 5
33
来自主题: JobHunting版 - 发几个C++面试题,senior的职位
1,what is abi and api, give some example
API=application programing interface. ABI=?
2, what happens when exception is thrown?
In current function, if there is a try-catch, will go to catch part; If
there is try-finally, will go to finally; Otherwise, will go out of the
function and return to previous call.
3, what if exception is not caught anywhere?
The process will end with a certain error and signal.
4, what must be initialized in the initialization list?
For my style, every field must be in... 阅读全帖
c****m
发帖数: 824
34
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: wannafree (wannafree), 信区: SanFrancisco
标 题: 大家看看阿三在onsite的时候怎么黑我的
发信站: BBS 未名空间站 (Sun Sep 29 15:08:12 2013, 美东)
最近面试一个与file system有关系的公司,junior的职位,onsite有俩阿三(总共5个
人)。
其中一个阿三非常严肃,黑着个脸,本来是安排和我一起吃午餐,他拒绝吃,我一边吃
,他一边问我问题。下面是面试过程中两个问题以及他对我的feedback:
问题一:为什么context switch有big overhead?
我的回答如下:
Because context switch needs to invalidate caches, flush TLB, registers, and
store process related data, which all require a lot of cpu cycles. The new
process also takes time t... 阅读全帖
s***0
发帖数: 117
35
来自主题: SanFrancisco版 - 一个外行对软件业的好奇
To me low level means kernel work. Drivers sound more like embedded work.
Lots of companies have teams dedicated to kernel work: the new big 4, the
old big 4, HFT companies, etc.
I don't think working on the kernel is harder/easier than working on a
website. But, I do think that it's much easier to teach a kernel guy to
work on a website than it is to teach a website guy to work on a kernel.

a
w*******e
发帖数: 395
36
最近面试一个与file system有关系的公司,业界内的大公司,junior的职位(工作经
验3年),onsite有俩阿三(总共5个
人)。
其中一个阿三非常严肃,黑着个脸,下面是面试过程中两个问题以及他对我的feedback:
问题一:为什么context switch有big overhead?
我的回答如下:
Because context switch needs to invalidate caches, flush TLB, registers, and
store process related data, which all require a lot of cpu cycles. The new
process also takes time to warm up the cache and TLB.
他后来的feedback是:我对context switch的基本概念不了解 。。。
问题二:
why does the system call need to copy the file name into kernel space when
you call re... 阅读全帖
h**********d
发帖数: 4313
37
来自主题: pets版 - [bssd] 带两猫上飞机过程
背景, 两只猫, 都1岁半, 每只12磅+...
United Airlines
coast to coast 东部小城, 飞旧金山, 需要转机
由于每次往返100%遇上飞机误点+取消, 衡量各种因素, 就由猫爸一人带来, 我在这里
接应.
原先由于心疼两毛, 下决心一定要carry on的, 结果查了很多航空公司规定, 一个人都
无法实现(后祥)
电话咨询了酱酱妈, 决定走cargo. 猫爸死脑筋, 非要让两个猫在一起, 结果一问, 人
家cargo还是得飞两个carrier各装一猫, 我苦口婆心, 好说歹说 他终于同意带更胆小
的fifi上飞机carrier on...(偏心的猫妈阿!!)
UA的规定是
疫苗, 健康证明(30天内兽医开的)
carrier on: 一人限带一kernel, 一个carrier只能带一成年猫, 如果6个月内可以放在
同一个kernel里面
cargo: 一人限托2kernel, 一个kernel一个猫, 如果6个月内可以放在同一个kernel里
面. kernel必须有螺丝固定, 塑料卡子不行, 笼里必须有水碗和食碗. 另气温也有要求
猫爸设想了各种... 阅读全帖
d****p
发帖数: 685
38
Mac OS X is based on NeXTSTEP which had the hybrid kernel XNU.
XNU was based on Mach, BSD components and I/O kit. So Mac OS X's kernel does
have borrowed a lot from
mach and FreeBSD stuff. Some code sharing still occurs -- quoted from wiki
XNU page "Although much of it
has been significantly modified, code sharing still occurs between Apple and
the FreeBSD Project"
But it is definitely non sense to say the kernel Mac OS X's kernel has
nothing to do with Apple (NeXT) and Steve
Jobs. Anyone with c... 阅读全帖
a****a
发帖数: 5763
39
http://bbs.weiphone.com/read-htm-tid-5575298.html
本文为技术组独家专稿,如需转载请联系题首logo邮箱(拒绝狗妖类无耻之辈转载);
-Comex共同参与制作
众所周知Comex因为超强的变长能力和漏洞查找能力而在所有的iPhone黑客中
脱颖而出,最后被苹果招安。但是可惜的是,iOS6的系统由Comex参与开发,也是有史
以来封堵漏洞最最多的一次,高达20+。各位可能不是很了解Comex,我统计过,在所有
的iOS漏洞中,Comex一个人所发现的漏洞总量占了所有iOS漏洞总量的43%,可见其能力
了得,也就是说,据我了解,iOS 6一下子堵住了以下漏洞:
Incomplete Codesign Exploit
BPF STX Kernel Write Exploit
IOSurface Kernel Exploit
Packet Filter Kernel Exploit
HFS Legacy Volume Name Stack Buffer Overflow
ndrv_... 阅读全帖
s***1
发帖数: 49
40
如果有一组数据,然后分别用 linear kernel (Xi dot Xj) , quadratic kernel ( (
Xi dot Xj+1)^2 , 和 radial basis function kernel (e^[-1/(2*sigma) * (Xi-Xj)
^2] 的 SVM 来成功 separate。
这时候吧数据里面每一个点都向上平移10. 就是 (xi,xj) = (xi,xj+10).
再用以上三个kernel 重新找boundary. 相对于每一个点来说, 新的boundary 会不会
和旧的 boundary 不一样? 也就是说每一个新的点到新的boundary, 和每一个旧点到
旧的boundary的距离是不是不一样。
我觉得linear 的是一样的,应为就是平移。 但是quadratic kernel 和 radial basis
不一样,但是无法具体解释为什么。。。。
J*X
发帖数: 302
41
来自主题: Hardware版 - T410i蓝屏求助 (转载)
【 以下文字转载自 Windows 讨论区 】
发信人: JeX (Maroon Bells), 信区: Windows
标 题: T410i蓝屏求助
发信站: BBS 未名空间站 (Fri Aug 5 00:42:44 2011, 美东)
去年买的T410i 集成显卡
上个星期买了G Skill 1333的内存,4G X 2 (原来的内存是1066的)
换了内存之后 原来的32位系统跑了两天,没问题
前天装了新买的SSD Crucial C300 128G,新装了win7/x64
到现在为止已经蓝屏6次了
所有的驱动都是用window update 和 thinkpad system update 装的,应该没有问题。
以下是几次bluescreen的一些信息,希望有达人能帮我看看,给点建议。
080411-10186-02.dmp 8/4/2011 8:49:37 PM CRITICAL_OBJECT_TERMINATION
0x000000f4 00000000`00000003 fffffa80`08bff9e0 fffffa80`08bf... 阅读全帖
y***u
发帖数: 5243
42
来自主题: Linux版 - Android will be on your TV
不是,android team把kernel改掉了
^ a b Greg Kroah-Hartman (2010-02-02). "Android and the Linux kernel
community". Retrieved 2010-02-03. "This means that any drivers written for
Android hardware platforms, can not get merged into the main kernel tree
because they have dependencies on code that only lives in Google's kernel
tree, causing it to fail to build in the kernel.org tree. Because of this,
Google has now prevented a large chunk of hardware drivers and platform code
from ever getting merged into t
m********r
发帖数: 334
43
有很多发现,先说几个相关的。有两个Key发现不工作,ACTION和RUN,比如
KERNEL=="sd*[0-9]", NAME="my_usbdrive"
插入后在/dev下有my_usbdrive,但是如果写成
ACTION="add",KERNEL=="sd*[0-9]", NAME="my_usbdrive"
什么都没有。
KERNEL=="sd*[0-9]",SYMLINK="mitbbs" 没问题,但是
KERNEL=="sd*[0-9]",RUN+="/usr/bin/my_script" 不执行
如果是
KERNEL=="sd*[0-9]",PROGRAM="/usr/bin/my_script" 可以执行my_script,但是
my_script变成僵尸,而且在my_script里任何命令带参数都不执行,比如
umount -l /mnt/usb
现在搞不清楚这是不是bug
y*******3
发帖数: 333
44
来自主题: Linux版 - how to run virtualbox in Fedora 13
Running virtualbox in Fedora 13. Error message below, how to fix it?
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there
is a permission problem with /dev/vboxdrv. Please reinstall the kernel
module by executing
'/etc/init.d/vboxdrv setup'
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package
first. This package keeps track of Linux kernel changes and recompiles the
vboxdrv kernel module if necessary.
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)