* select timeouts
@ 1997-05-22 3:44 Miguel A. Rivera
0 siblings, 0 replies; 2+ messages in thread
From: Miguel A. Rivera @ 1997-05-22 3:44 UTC (permalink / raw)
Hi everyone,
I am trying to figure out how the select is working on my alpha. I have a UDB 166 (that's right the one that cannot be upgraded :-( ) running Linux kernel 2.0.29. When I select() with a timeout of 1 second it takes around 10 (elapsed time) to return. The systems is not running anything else. Does anybody have a clue about what is going on?
Thank you in advance,
Miguel Rivera
miguel@netwave.net
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: select timeouts
[not found] <01BC6638.7E32EE40@orion.netwave.net>
@ 1997-05-22 8:07 ` Andreas Johansson
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Johansson @ 1997-05-22 8:07 UTC (permalink / raw)
On Wed, 21 May 1997, Miguel A. Rivera wrote:
>
> Hi everyone,
>
> I am trying to figure out how the select is working on my alpha. I have a
> UDB 166 (that's right the one that cannot be upgraded :-( ) running
> Linux kernel 2.0.29. When I select() with a timeout of 1 second it takes
> around 10 (elapsed time) to return. The systems is not running anything
> else. Does anybody have a clue about what is going on?
Ok, try this source. When I run it, it gives me the correct timeout of one
second.
Here is my result using glibc-2.0.3:
ajo@wopr ~/src/test/select >time ./select
0.016u 0.032s 0:01.05 3.8% 0+0k 0+0io 60pf+0w
^^^^^^^
One second + startup time
And this is using glibc-1.99 from RedHat-4.1,
RPM package version 0.961212-4:
ajo@nova ~ >time ./select
0.015u 0.026s 0:01.06 2.8% 0+0k 0+0io 51pf+0w
Both of these machines are running Linux-2.1.36 though.
--------------------------- select.c ----------------------------
#include <sys/time.h>
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
int main (int argc, char *argv[])
{
struct timeval timeout = { 1, 0 };
select (0, NULL, NULL, NULL, &timeout);
}
----------------------------------------------------------------
If this is not working for you, you need to tell us what type of system
you have, what is installed on it, etc. I can also make my precompiled
binary available to you if you wish to check if it is the kernel or the
compiler/glibc which is misbehaving.
/Andreas
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-05-22 8:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-22 3:44 select timeouts Miguel A. Rivera
[not found] <01BC6638.7E32EE40@orion.netwave.net>
1997-05-22 8:07 ` Andreas Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox