From: "Nish Aravamudan" <nish.aravamudan@gmail.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: "Ram Gupta" <ram.gupta5@gmail.com>,
"Michal Schmidt" <xschmi00@stud.feec.vutbr.cz>,
"linux mailing-list" <linux-kernel@vger.kernel.org>
Subject: Re: select takes too much time
Date: Thu, 13 Apr 2006 14:18:45 -0700 [thread overview]
Message-ID: <29495f1d0604131418q42e00093ma72d27fbabd33cc9@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0604131701030.7732@chaos.analogic.com>
On 4/13/06, linux-os (Dick Johnson) <linux-os@analogic.com> wrote:
>
> On Thu, 13 Apr 2006, Ram Gupta wrote:
>
> > On 4/13/06, Michal Schmidt <xschmi00@stud.feec.vutbr.cz> wrote:
> >> Ram Gupta wrote:
> >>> I am using 2.5.45 kernel but I believe the same would be the true
> >>> for the latest kernel too.
> >>
> >> Are you just assuming this, or did you actually try a recent kernel?
> >>
> >> Michal
> >>
> >
> > I didn't get a chance to try it on a recent kernel yet but I believe
> > it to be so though I may be wrong
> >
> > Ram
> > -
>
> Simple program here shows that you may be right! In principle,
> I should be able to multiply the loop-count by 10 and divide
> the sleep time by 10, still resulting in 1-second total time
> through the loop. Not so! Changing the value, marked "Change this" to
> a smaller value doesn't affect the time very much. It is as though
> the sleep time is always at least 1000 microseconds. If this is
> correct, then there should be some kind of warning that the time
> can't be less than the HZ value, or whatever is limiting it.
Doesn't sys_select() just use schedule_timeout() eventually? <checks>
yes, sys_select() -> core_sys_select() -> do_select() ->
schedule_timeout(). Presuming there is any value stored in the timeout
parameter, you're going to sleep at least a jiffy which is 1/HZ. If
HZ=1000 (or 1024), I'd guess that 1000 us as a minimum would be
expected.
Thanks,
Nish
next prev parent reply other threads:[~2006-04-13 21:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 15:01 Ram Gupta
2006-04-13 15:30 ` Andreas Mohr
2006-04-13 16:11 ` Ram Gupta
2006-04-20 9:01 ` Denis Vlasenko
2006-05-01 17:00 ` Ram Gupta
2006-04-13 15:56 ` linux-os (Dick Johnson)
2006-04-13 18:29 ` Jan Knutar
2006-04-13 18:36 ` Michal Schmidt
2006-04-13 19:51 ` Ram Gupta
2006-04-13 21:08 ` linux-os (Dick Johnson)
2006-04-13 21:18 ` Nish Aravamudan [this message]
2006-04-13 21:20 ` Michal Schmidt
2006-04-14 14:54 ` Ram Gupta
2006-04-14 14:56 ` linux-os (Dick Johnson)
2006-04-14 21:45 ` Jan Engelhardt
2006-04-17 15:55 ` Ram Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29495f1d0604131418q42e00093ma72d27fbabd33cc9@mail.gmail.com \
--to=nish.aravamudan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=ram.gupta5@gmail.com \
--cc=xschmi00@stud.feec.vutbr.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®