Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-20-2009, 09:08 PM   #1
LQ Newbie
Registered: Dec 2003
Posts: 5

Rep: Reputation: 0
sleep time = sys time for pread?

pread is a syscall, after the user process called pread, the user process will be put into sleep queue and sleep, suppose the pread will return after 10ms, then this 10ms will be counted as sleep time.

For the real work of pread, a kernel process will request the data from disk to be read in, so this 10ms is also counted as sys time. Then this 10ms will be counted 2 times, once in sleep time and once in sys time. And the total percent time of sys, sleep, user might be larger than 100%.

Although I am sure the sys%+sleep+usr% should be 100%, but not sure where in my above statement is wrong. Could you anyone help me?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change sleep idle time? justmonkey23 Fedora 1 09-23-2010 01:34 AM
LXer: BRM is done... time to sleep :-) LXer Syndicated Linux News 0 03-04-2008 02:50 AM
using sleep() and time() commands together in c++ totaljj Programming 1 02-14-2007 07:12 AM
how to let system to sleep at certain time? taoweijia Fedora 3 07-08-2004 04:05 AM
Sys time and hwclock time hallamigo Mandriva 2 05-24-2004 09:57 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration