LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-20-2009, 09:08 PM   #1
wqhhust
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?

Thanks,
Daniel,
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:14 PM.

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