keenor 发表于 2003-5-5 00:35:21

请教linux时间片是多长?

在 http://www.linuxeden.com/edu/doctext.php?docid=300
看到标准的 Unix 系统的时间片是100毫秒,这岂不是也太长了?要是有几十上百个人在线,那光调度那些shell都不行啊?

Dragonfly 发表于 2003-5-5 01:15:48

efault time slice in linux should alse be this value. it is changed in realtime linux and low latency patch. schdeuling happens in many situations. time sliced used up is only one. many are changed by signal, intr, ...

keenor 发表于 2003-5-5 01:41:36

多谢大哥 low latency patch已经找到,在http://www.zip.com.au/~akpm/linux/schedlat.html
rtlinux似乎不提供下载,好象是要钱的

我也觉得我的问法有点问题,我其实是想做一个实时要求比较高的东西。但总是对进程管理感到困惑。其实就是响应一个中断,我想实在不行就把中断响应处理全放到模块驱动里面,但我觉得这并不是个好办法。

keenor 发表于 2003-5-5 01:49:51

还找到了一个可强占的patch:
ftp://ftp.kernel.org/pub/linux/kernel/people/rml/preempt-kernel
您觉得可这两种办法哪种比较好?

Dragonfly 发表于 2003-5-5 05:39:25

system will response to an intr asap. how fast u want? faster than a raid or gigabit nic? i am not so familar with rt linux, but describe u requirement, we can disucss. system can response to intr only in lldd. no other choice.
rtlinux have a free version for download, its pro version need money.
i think low latency and preemptive are different. need find some os books to know detail. i almost forgot all stuff learn in my os course now. hehe

keenor 发表于 2003-5-5 16:09:57

其实就是每十几毫秒发生一次中断,一发生就往一块内存里写东西。可能是我担心过多了,呵呵
lldd是指什么?我第一次看到 :oops:
昨天两个patch都试了,挺有意思的,但老实说好象没什么差别。也许x下面会快一点吧。

Dragonfly 发表于 2003-5-5 21:49:13

o, ic, that task can be handled by normal linux.
lldd low level device driver
u can not feel the difference by u. that will be terrible. u need do some kernel resonpsiveness test. search web, there is a tool to do this. but since many people already test that, u need not do it again.

keenor 发表于 2003-5-5 22:26:48

谢谢
我懂了

Dragonfly 发表于 2003-5-5 22:29:57

welcome :-D
页: [1]
查看完整版本: 请教linux时间片是多长?