Re: Real Time Behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1000HZ is clock tick rate, or how frequently timer interrupt is wake
up kernel, is not it??

Default time slice is something else ne??

Pls correct me if i am wrong

from sched.c
-------------------
#define MIN_TIMESLICE           max(5 * HZ / 1000, 1)
#define DEF_TIMESLICE           (100 * HZ / 1000)
#define ON_RUNQUEUE_WEIGHT       30

When HZ=1000;

Default Timeslice = 100 * 1000 /1000 = 100 is not it???

Correct me if  I am wrong ....???

On 9/18/06, Jinesh K J <jineshkj.newsletters@xxxxxxxxx> wrote:
> I think for 1000 HZ default timeslice is around 100ms; ( i may be wrong ;)
> > whats the default timeslice ?

1/1000 = .001 = 1ms

Also, remember that top posting is bad.



--
Tharindu Rukshan Bamunuarachchi
all fabrications are subject to decay

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux