Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Andreas Johansson <ajo@wopr.campus.luth.se>
Subject: Re: select timeouts
Date: Thu, 22 May 1997 10:07:47 +0200 (CEST)	[thread overview]
Message-ID: <f3895e0dfeaa5dec36781869c13e0762.axp-list@archive.invalid> (raw)
In-Reply-To: <01BC6638.7E32EE40@orion.netwave.net>

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

       reply	other threads:[~1997-05-22  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01BC6638.7E32EE40@orion.netwave.net>
1997-05-22  8:07 ` Andreas Johansson [this message]
1997-05-22  3:44 select timeouts Miguel A. Rivera
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox