由买买提看人间百态

topics

全部话题 - 话题: kernel
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
c*********t
发帖数: 2921
1
最近对Linux kernel很感兴趣。尤其是network,想把 Linux kernel里关于networking
实现的代码读读,研究研究。可是从哪里开始呢?俺对network的理论知识还算懂得不
少,基本原理明白。就是想弄明白在Linux这个特定的OS里是如何实现网络功能的。
查了一下,发现了一本书不错"Understanding Linux network internals" By
Christian Benvenuti. 好像这本书讲了常用的data structure,如何写network device
driver,以及IP 和IP layer 以下的实现。好像没有讲TCP和socket接口是如何实现的。
想问问大家,看"Understanding Linux network internals"这本书是不是可以作为入
门的书?谁看过这本书,谈谈感受?
如果想了解Linux kernel里TCP和socket接口的实现,看哪本书比较好?W. Richard
Stevens 的 "TCP/IP Illustrated" 是不是太general了,不是针对Linux的?
o**n
发帖数: 1249
2
来自主题: Linux版 - 怎么保存kernel panic的消息?
just received this webinar flyer, you are maybe interested
Linux Kernel Debugging: Tricks, Tools, and Trends
Description:
When a kernel crashes, when a driver won’t drive, developers want to know
why. Perhaps you have your kernel crash scrolled right off the vga screen or
you didn't get to see it at all. Perhaps you turn to kgdb, but find you
have no serial port. Seems like you’re stuck. You probably need to have a
look at what all could help you out. If you wrote perfect software first
time, al
S*A
发帖数: 7142
3
来自主题: Linux版 - glibc和kernel的兼容性问题
应该问题不大。kernel 虽然更新很快,但是 kernel / user space
的 API 更新不是那么快,很多东西是加新的 feature, 向下兼容的。
夸张点你拿 uclinux 那些超级老的 libc 在新的 kernel 也能跑起来
呢。很多 embed linux 都是这么干的。所以我觉得问题不大。
f********1
发帖数: 1601
4
其实硬件没有变化呀
FC15的kernel config哪里能找到? 如果我不加FC15的kernel patch, 这个kernel
config
还能用么?
xt
发帖数: 17532
5
嗯,很古老,但是工作需要啊。
我已经解决了:
下载source之后,
make oldconfig 把原有的kernel的config复制过来;
make xconfig,把复制过来的./.config 导入,看看有没有问题;
make modules
make install_modules
make rpm
rpm -ivh ...
mkinitrd
然后用yast,添加一个新的boot configuration
这样就既保留了原有的kernel,又update了新的kernel
b**r
发帖数: 352
6
I have a circuit board based on ARM926EJS, it was working fine with 128MB
DDR2. I just changed to a 256MB chip, the kernel boots ok if I only use the
lower 128MB. but will hang right after "booting the kernel" if I try to use
more, say 130MB.
I can r/w to the upper 128MB in uboot without any problem though.
I am trying to locate where the kernel hangs. I turned on DEBUG in head.S,
which didn't reveal anything usual. How can I get more debug info?
G*****h
发帖数: 33134
7
来自主题: Linux版 - vmware里升级kernel 3.2报错
module 要跟 kernel 匹配
你把这几个 vm module 先删了
跑新 kernel 时再装
就怕新 kernel 跑不起来,hehe

hgfs
p****s
发帖数: 32405
8
来自主题: Programming版 - INIT_WORK从Linux kernel 2.6.20后改了?
【 以下文字转载自 Linux 讨论区 】
发信人: plutus (愿HERO的小朋友们都健康快乐), 信区: Linux
标 题: INIT_WORK从Linux kernel 2.6.20后改了?
发信站: BBS 未名空间站 (Wed Apr 1 12:23:50 2009), 转信
如题,一直用老的2.6.11 kernel compile driver,
这两天刚升级到2.6.24, 发现原来的code不能编译了,
其中一个就是这个INIT_WORK的macro改了,原来老的kernel上
prototype里要传三个参数,
INIT_WORK(struct work_struct *work, void (*function)(void *), void *data);
现在看, 只剩俩了,
INIT_WORK(struct work_struct *work, void (*function)(void *));
难道原来的data被wrap到work里去了? 简单的把第三个argument去掉然后
放到workqueue里虽然能编译, 但是数据是会丢的.
X****r
发帖数: 3557
9
I'm not sure I understand your question -- kernel threads are what the
kernel sees, and user threads are what the applications see, so there
must be a mapping somehow, right? After all, if a piece of code is
executing, both the application and the kernel should agree on this
fact.
n*********t
发帖数: 64
10
kernel.dll不是win98的文件。kernel32.dll才是。
有的病毒会用这些文件名来做伪装。
比如kernel.exe,kernel.dll等
o******e
发帖数: 1001
11
来自主题: Mathematics版 - Kernel Density Estimation (转载)
【 以下文字转载自 Statistics 讨论区 】
发信人: onehouse (万物皆势,无道常驻。), 信区: Statistics
标 题: Kernel Density Estimation
发信站: BBS 未名空间站 (Fri Feb 8 17:59:22 2013, 美东)
最近工作要用kernel density estimation.查了一下网上,发现好多都是讲如何
estmiate the density for points. 但是我目前的问题是,我在一个平面上有好多直
线,需要estimate这些线的density,网上好像有一个说法叫Kernel Density
Estimation for linear feature, 但是很难发现它的一些理论推导,有谁对这个有印
象吗?谢谢!
h****y
发帖数: 5
12
来自主题: JobHunting版 - Kernel Engineer opening around LA
One kernel engineer opening in Pasadena area, the founders are from
Caltech. Pretty good technology and solid company. Requires kernel
development and debugging experience on Linux or BSD. If interested, please
forward your resume and contact to the recruiter directly:
a****[email protected]
l*******y
发帖数: 1498
13
kernel virtual address space可以分成2部分。一个是logical adress space, 对应
physical address < 896M的部分,这个部分(Low memory)和physical address只差
一个constant的 offset. 另外一部分是 physical address > 896M的部分kenel不能直
接访问,要做一个mapping 建立page table后才可以访问。
kmalloc返回的地址就是 logical adress, physical contiguous, 这个部分地址不用
page table.
vmalloc返回的 kernel virtual address是 virutal contiguous, 要建page table
1G以上的memory是可以用到的,把暂时不用的page mapping保存一下,然后去map 别的
部分就可以了。
Linux是这样的,Windows不知道是什么样子。
r**u
发帖数: 1567
14
多谢多谢。也就是说kernel只能用到up to 1GB physical mem,但是user process可以
用到more than 1GB是吧。
还有一个困惑的地方,比如物理内存少于1GB,这种情况是啥样的?user virtual addr
和 kernel virtual addr会map到同一个physical mem frame?
K******g
发帖数: 1870
15
很同意。看书是永远看不明白的。其实如果hacking 过kernel,会很好找工作的。我已
经因为没有debug过kernel,至少fail掉了2个很好工作的interview/onsite
m******t
发帖数: 4077
16
你们选什么?
我现在的备选是:
kernel:
understanding the linux kernel
driver:
linux device drivers
c++:
c++ primer
algorithm:
clrs
各位各抒己见吧
j****9
发帖数: 2295
17
我也准备买这两个。firmware engineer要学的吧。
kernel:
understanding the linux kernel
driver:
linux device drivers
x*******i
发帖数: 79
18
来自主题: JobHunting版 - V 家招 Kernel Test Developer
我们要招3个人,组里老中比较多人都很nice,工作气氛好
可以了解很多kernel底层的知识,将来转kernel developer也容易
v**********6
发帖数: 86
19
大家好,
leetcode, cracking....什么的相信很多人都在用,但是我想问问,如果想练习一些
system或者说kernel programming的话,有什么好的地方呢?我只知道careercup上有
一些 :)
至于什么叫system,kernel programming,我举个例子,比如说给你一个struct,然后写
一个macro返回里面一个field到struct开头的offset之类的题目~
t**n
发帖数: 272
20
来自主题: JobHunting版 - base system kernel bug 如何patch?
app有bug直接kill app, patch.
os有bug, 这个要看os存在什么介质上,一般kernel是在flash里,载入到ram运行,所
以直接覆盖flash里的kernel,reset就好.
base system: 不确定这个指什么。如果是指u-boot之类的bsp的话,一般这种机器都有
两个flash memory区。当一个flash memory运行时,你可以直接写另外一个memory区,
写好后reset, ROM会自动load最新的而且 checksum正确的区来执行。
b*******y
发帖数: 16
21
We have an immediate senior engineer job opening for device driver and linux
kernel work in WiFi core development team, located at Sunnyvale.
you will be contributing to some coolest gadgets with 100+ million shipment
per year. Please contact with me if interested.
=======================================================================
The following are the specific required skills and desired experience:
* Required MS in CS/EE with 6+ years of related experience.
* Direct working experience wit... 阅读全帖
w***g
发帖数: 5958
22
如果你的输入可以表示成简单的向量的话,其实试一下linear kernel和rbf就可以了。
我自己的经验是预测结果主要看数据的难易,kernel影响不大(我组要和高维数据打交
道)。这一点来说SVM还是很不错的。
s********t
发帖数: 4150
23
If you really care about the intuition/theory behind the kernel, you should
design your own custom kernel, which will likely better fit your problem and
data.
s***1
发帖数: 49
24
来自主题: CS版 - A Question About Kernel
K(x,y) = transpose(phi(x))*phi(y)
If I have a kernel: K(x,y) = (transpose(x)*y + 1)^3, and x and y are both 2-
d vectors.
What is the explicit mapping phi that mimics the kernel value above?
a***a
发帖数: 149
25
俺只是把SVM当作一个black box...
发现用 polynomial kernel的时候 precision狂高,都是接近100%, recall都是个位数
,这个情况怎么调节参数啊?
用 linear的就都是很好。而且很接近。
另外,如果不用F-measure衡量,用那个break even point,那个point是怎么搞出来的
啊?难道是狂试参数?我这边为啥polynomial kernel的时候 precision跟recall差那
么大啊,这个咋break even point 呢?
谢谢~~ rrdw~~
s********k
发帖数: 6180
26
来自主题: CS版 - 求助Kernel PCA的matlab code
可能我理解不是很到位,这个中心化应该是在做kernel之前先对原始数据做的吧?难道
是在做了kernel之后?
r**u
发帖数: 1567
27
恩。好像是VA直接到PA。还是有些地方不明,比如physcial mem 1GB,那这1GB
physical mem已经map了kernel virtual addr space,那user virtual addr space也
会map到这1GB physical mem。那比如1 physical 可能就会map both kernel and user
virtual addr,是这样么? 多谢

virtual
z***e
发帖数: 5393
28
我还是不晓得你说的"kernel virtual addr"是指什么...virtual addr就是virtual
addr,什么叫kernel virtual addr?

user
z***e
发帖数: 5393
29
...我不是问原理,这都是常识。
我是觉得kernel virtual address这个名字很奇怪,一般就说kernel address,大家都
知道是1-1 mapping,加个virtual很confusing.

)。
m*p
发帖数: 1331
30
比如使用rbf kernel,
k(xi, xj) = exp(-a * ||xi-xj||^2)
这个很容易理解。
问题是,最后怎么使用这个model呢?
比如,新来的一个test sample xk, 怎么feed into the trained RBF kernel?
KSVM应该是inductive learning吧?
d*****u
发帖数: 17243
31
kernel function都是二元函数,也正好就是特征函数的某种内积
K(x,y)=
如果y是固定的,那K(x,y)可以由phi(x)来表征
至于特征函数的形式,其实是比较复杂的
比如RBF kernel,如果把其中一个输入y看成固定点
那么这个K就是关于另一个输入x的高斯函数
我们知道高斯函数构成的函数空间是无穷多维的
也就是说,一个高斯函数必须有无穷多个其他高斯函数线性组合才能得到
(想想傅立叶变换,高斯函数g变换成另一个高斯函数G
也就是说,高斯函数g可以表征为高斯函数G的无穷积分)
也就是说一个一般的数据点投射到phi上以后,就成了无穷高维的数据
这也是SVM的巧妙之处,通过增加维度来提高可分类性
s**i
发帖数: 381
32
来自主题: Linux版 - SLES怎么升级kernel啊?
刚装了SUSE Linux Enterprise Server 10, SP2
default kernel is 2.6.16.60-0.21-default
为了装lustre,需要升级到2.6.16.60-0.31
看了看http://wiki.novell.com/index.php/Kernel_versions
确实应该有这个版本的kernel
可是online update 总是找不到任何patch
activate了evaluation code也是不行
实在是搞不懂这些SLES, RHEL是怎么运作的?
还是ubuntu/debian/gentoo比较好,都在repository里
请用过SLES的大虾帮帮忙吧。
谢谢
w****g
发帖数: 597
33
来自主题: Linux版 - Linux Kernel 2.6.29 Released
Linux Kernel 2.6.29 Released
Posted by kdawson on Monday March 23, @10:07PM
"Linus Torvalds has released Linux 2.6.29. The new features include the
inclusion of kernel graphic modesetting, WiMAX, access point Wi-Fi support,
inclusion of squashfs and a preliminary version of btrfs, a more scalable
version of RCU, eCryptfs filename encryption, ext4 no journal mode, OCFS2
metadata checksums, improvements to the memory controller, support for
filesystem freeze, and other features. Here is the full l
p****s
发帖数: 32405
34
如题,一直用老的2.6.11 kernel compile driver,
这两天刚升级到2.6.24, 发现原来的code不能编译了,
其中一个就是这个INIT_WORK的macro改了,原来老的kernel上
prototype里要传三个参数,
INIT_WORK(struct work_struct *work, void (*function)(void *), void *data);
现在看, 只剩俩了,
INIT_WORK(struct work_struct *work, void (*function)(void *));
难道原来的data被wrap到work里去了? 简单的把第三个argument去掉然后
放到workqueue里虽然能编译, 但是数据是会丢的.
s********k
发帖数: 6180
35
我查到的root file system就是linux系统文件夹。现在我看到一个版本的linux系统提
供kernel和root file system的下载。是不是root file system就是整个linux,而
kernel只是其中操作系统的核心部分?
N****w
发帖数: 21578
36
http://www.h-online.com/open/Kernel-Log-Main-development-phase-of-Linux-2-6-32-completed--/news/114340
就这个觉得比较爽
KMS for Radeon series 2000, 3000 and 4000
哎,这些 distro 与其炫耀 kernel version 有多新,
不如做几个好用的 apps,比如最简单的:
直接拖/拷 图片到 Email 里。。。
d*******r
发帖数: 3299
37
正经活,但是不打紧那种,因为kernel的东西我也是新手
这个kernel肯定是改过的,不过应该只加载了一些作者自己的.ko模块,
我觉得能不hack它,又让我自己build的.ko模块能跑起来就最好了,
不稳定也好,只是学校lab里作试验用的toy system
p*******i
发帖数: 190
38
来自主题: Linux版 - 怎么保存kernel panic的消息?
Look into the kernel/panic.c. You can modify the code to create a log file
or a socket. Most time, you are able to write those information to your
own log file or use your own socket to somewhere depending on how the
kernel is crashed.

log
l*******o
发帖数: 12469
39
有兴趣的哥们去打听一下,按没有确认过。不知道这哥们为啥往俺的信箱里塞了这么封
信。
We need design and implementation experts in embedded Linux kernel and
drivers to work on our Linux Kernel 2.6 based OS, KindleOS. The roles
require established skills in C, and embedded systems as well as a track
record of shipping robust and innovative products on an aggressive schedule.
The opportunity is based in Cupertino, CA USA.
s**n
发帖数: 449
s****n
发帖数: 786
41
来自主题: Linux版 - glibc和kernel的兼容性问题
如果你编译的时候kernel-headers也是2.6.11,你还是需要重新编译glibc
否则glibc在新kernel下可能不工作,如果你用了更新的头文件,可能可以工作。
2.6.12以后变化很大
S*A
发帖数: 7142
42
来自主题: Linux版 - glibc和kernel的兼容性问题
faint. 你是说 drepper 么,这家伙和谁不打架来着?我都
没法知道你想引用的是哪一个 case 了。再说了, kernel
developer 自己在 lkml 上面掐架很正常啊,哪个大点的改动
是没有掐过的,就是正常的开发模式的一部分。林子大了,
众口难调,讨论一下是正常的。
你是知道什么 kernel 2.6.11 以后不向下兼容 glibc 的例子么?
具体说说?
S*A
发帖数: 7142
43
来自主题: Linux版 - glibc和kernel的兼容性问题
google 了一下 memcpy, kernel, lkml.
没有找到什么有用的。 唯一一个接近的是 memcpy 和 memmove
要区分开。但是这个 memcpy 完全是 user space 自己的事情啊。
跟 kernel 没有什么关系啊,还是非常不解。
f********1
发帖数: 1601
44
我之前一直用自己编译的vanilla kernel, 上周还在用FC14时用git升级到了2.6.39,
在FC14
上用着毫无问题。 后来升级到FC15, 自己编的2.6.39就用不行了,每次启动就会进
system
rescue mode, 重新编译也没用。看log也没看出什么名堂。
大家有什么建议?为什么FC15让我的kernel进rescue mode?
xt
发帖数: 17532
45
我下载了一个kernel (2.6.18),config, 编译rpm,然后安装,
再添加GRUB选项,结果发现重新启动的时候出现错误
/dev/sda5 not found
这是怎么回事?我的config完全是copy原有的kernel config然后改的
IP
发帖数: 106
46
来自主题: Linux版 - 修改kernel怎么保证kABI不变
哪些大侠可以指点下,怎么能修改kernel,又不让kernel Application Binary
Compatibility 不改变?
谢谢
S*A
发帖数: 7142
47
来自主题: Linux版 - 修改kernel怎么保证kABI不变
不明白你想问什么,你是要自己修改什么功能?
如果是写普通的 driver, 不太能影响 kernel user space API.
改 system call 这些会,但是 kernel 一般是不允许改的。
s****n
发帖数: 786
48
如果u-boot里可以访问high 128M,查kernel tree
基本肯定是local bus访问无效地址造成kernel崩溃,看mmu相关的mmap register,很
久没摸arm,忘了具体内容,查manual

the
use
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)