Some Question on linux process management..
Hi!~
I face some problem when researching the red hat linux 8.0...Hope somebody can help... 1)What is the Linux default time slice? 2)Linux is preemptive or non preemptive? **3)How to list out all running process in Red Hat Linux 8.0? 4)What is the linux scheduler?(priority,round robin etc....)...and can it be improved any way, or just is perfect? Thanks a lot for answering:) |
Re: Some Question on linux process management..
Quote:
Quote:
Quote:
Quote:
the behaviour, though, like even pre-empt kernel level activities to make desktops even more responsive. You can re-prioritse tasks using nice (man nice for details). Cheers, Tink |
linux 2.4.* and lower are non preemtive, only 2.5.(i 4got when but its a development brach so we dont care :)) and up are preemtive built in, there are patches to amke it preemtive in 2.4.* (in fact i use a preemtive kernel patch in 2.4.20 for my laptop works nicly), virtyaly everyhitng in the kernel has a patch to modify it, so what whatever one u want, but i think the process managment is proority driven, "nicer" prosees get better stuff i think it was, im not sure, lol il stop rambling here :)
|
Userspace (non-kernel-level) tasks have always
been pre-empted in Linux. What you're talking about is the patch to pre-empt the kernel that I've been talking about anyway :} Cheers, Tink |
Also, the 2.5.x dev kernel became 2.6.x production some time ago--and, as Tink says, it's fully pre-emptive.
Default timeslice (from kernel/sched.c) is 100 mseconds (I can only assume thats microseconds). Minimum is 10, max is 200. Tink knows the scheduler isn't perfect. . . It's a priority/round-robin. That is, if a process has a high priority, then it will be given priority, but at specific priority levels, they're in a round-robin. Here, this says it better: Quote:
Quote:
|
All times are GMT -5. The time now is 01:30 AM. |