Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] Re: /proc/uptime
- Date: Wed, 12 Nov 2008 03:30:21 +0000
- From: John Fremlin <john@example.com>
- Subject: [tlug] Re: /proc/uptime
- References: <78d7dd350811111815y11b471ek31c44c4443d2dca5@mail.gmail.com>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
"Nguyen Vu Hung" <vuhung16plus@example.com> writes: > What is the meaning of the second number( idle time) in the output of > `cat /proc/uptime`? > I really don't understand what is the "idle time" of the kernel. I'm not sure since it's a long time since I was doing kernel stuff, but here's my recollection. When no normal task is scheduled the kernel runs the init_task. This is a dummy task that is created before userspace is ever entered. Nowadays, it does something like repeatedly call the ACPI sleep hook. [...] > cputime_t idletime = cputime_add(init_task.utime, init_task.stime); This just adds up how much time (user + system) has been spent in the init_task, so how much time has been spent with no actual task running. [...]
- Follow-Ups:
- Re: [tlug] Re: /proc/uptime
- From: Nguyen Vu Hung
- References:
- [tlug] /proc/uptime
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: [tlug] Microcontrollers + linux
- Next by Date: Re: [tlug] Microcontrollers + linux: Digikey, ARM, NXP serial port
- Previous by thread: [tlug] /proc/uptime
- Next by thread: Re: [tlug] Re: /proc/uptime
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links