You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rasmus Lerdorf <ra...@lerdorf.on.ca> on 1998/09/01 21:08:28 UTC

arm-linuxelf httpd

I just received my new NetWinder toy a couple of hours ago.  Apache built
perfectly on it.  I am however seeing some accept() problems, I think.
Sometimes it just won't answer and an strace shows it sitting in an
accept() call.  A normal request looks like this:

accept(15, {sin_family=AF_INET, sin_port=htons(1112), sin_addr=inet_addr("207.164.141.2")}, [16]) = 3
flock(20, LOCK_UN)                      = 0
sigaction(SIGUSR1, {SIG_IGN}, {0x2066b58, [], SA_NOMASK|0x1ca6a0}) = 0
getsockname(3, {sin_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("207.164.141.35")}, [16]) = 0
setsockopt(3, IPPROTO_TCP1, [1], 4)     = 0
alarm(300)                              = 0
read(3, "GET /test.html HTTP/1.0\r\nConne"..., 4096) = 258
sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}) = 0
time(NULL)                              = 904674993
alarm(300)                              = 300
alarm(0)                                = 300
stat("/usr/local/www/htdocs/test.html", {st_mode=0, st_size=0, ...}) = 0
open("/usr/local/www/htdocs/test.html", O_RDONLY) = 4
mmap(0, 12, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40019000
alarm(300)                              = 0
alarm(0)                                = 300
alarm(300)                              = 0
alarm(300)                              = 300
alarm(0)                                = 300
close(4)                                = 0
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
write(3, "HTTP/1.1 200 OK\r\nDate: Tue, 01"..., 311) = 311
time(NULL)                              = 904674994
write(18, "207.164.141.2 - - [01/Sep/1998:1"..., 80) = 80
munmap(0x40019000, 12)                  = 0
sigaction(SIGUSR1, {0x2066b58, [], SA_SIGINFO|SA_NOCLDSTOP|0x2001842}, {SIG_IGN}) = 0
alarm(15)                               = 0
read(3,  <unfinished ...>


By the way, if anybody wants an account on this toy to play around with
Linux on a StrongArm cpu, let me know.  

-Rasmus


Re: arm-linuxelf httpd

Posted by Dirk-Willem van Gulik <di...@jrc.it>.

On Wed, 2 Sep 1998, Rasmus Lerdorf wrote:

> > You've got a normal Risc-PC there, i.e. a the garden variety Acorn ?
 
> No, this is the new NetWinder box from Corel.  See
> http://www.corelcomputer.com and http://www.netwinder.org
 
> It's a cute little thing about the size of a hardcover book and it only
> draws about 18 watts!  I'll bring it with me to ApacheCon so you can all
> have a look.  I am hoping to get Apache running smoothly on this thing and
> then using them for a low-end server farm where each customer gets their
> own machine.  These things can be had for about US $700 each depending on
> configuration, so they are quite cost effective.  

Cool, yes, I found it now, and recognize the hardware; I used to develop
networking bits for an early version of Acorns NC; which ended up with
oracle after Acorn was bought out. Just curiousity. This box is a logical
next step :-). Cool box though. Much better than the original; though also
much more expensive; it used to be targeted at the sub 180 dollar range.
If I recall corrctly I would be extremely suspicious of any thing having
to do with select(). There is an issue with the mapping to poll() and the
way the signallying is handled.

Dw.


Re: arm-linuxelf httpd

Posted by Rasmus Lerdorf <ra...@lerdorf.on.ca>.
> You've got a normal Risc-PC there, i.e. a the garden variety Acorn ?

No, this is the new NetWinder box from Corel.  See
http://www.corelcomputer.com and http://www.netwinder.org

It's a cute little thing about the size of a hardcover book and it only
draws about 18 watts!  I'll bring it with me to ApacheCon so you can all
have a look.  I am hoping to get Apache running smoothly on this thing and
then using them for a low-end server farm where each customer gets their
own machine.  These things can be had for about US $700 each depending on
configuration, so they are quite cost effective.  

-Rasmus


Re: arm-linuxelf httpd

Posted by Dirk-Willem van Gulik <di...@jrc.it>.
Rasmus,

You've got a normal Risc-PC there, i.e. a the garden variety Acorn ?

	Dw.

On Tue, 1 Sep 1998, Rasmus Lerdorf wrote:

> I just received my new NetWinder toy a couple of hours ago.  Apache built
> perfectly on it.  I am however seeing some accept() problems, I think.
> Sometimes it just won't answer and an strace shows it sitting in an
> accept() call.  A normal request looks like this:
> 
> accept(15, {sin_family=AF_INET, sin_port=htons(1112), sin_addr=inet_addr("207.164.141.2")}, [16]) = 3
> flock(20, LOCK_UN)                      = 0
> sigaction(SIGUSR1, {SIG_IGN}, {0x2066b58, [], SA_NOMASK|0x1ca6a0}) = 0
> getsockname(3, {sin_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("207.164.141.35")}, [16]) = 0
> setsockopt(3, IPPROTO_TCP1, [1], 4)     = 0
> alarm(300)                              = 0
> read(3, "GET /test.html HTTP/1.0\r\nConne"..., 4096) = 258
> sigaction(SIGUSR1, {SIG_IGN}, {SIG_IGN}) = 0
> time(NULL)                              = 904674993
> alarm(300)                              = 300
> alarm(0)                                = 300
> stat("/usr/local/www/htdocs/test.html", {st_mode=0, st_size=0, ...}) = 0
> open("/usr/local/www/htdocs/test.html", O_RDONLY) = 4
> mmap(0, 12, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40019000
> alarm(300)                              = 0
> alarm(0)                                = 300
> alarm(300)                              = 0
> alarm(300)                              = 300
> alarm(0)                                = 300
> close(4)                                = 0
> select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
> write(3, "HTTP/1.1 200 OK\r\nDate: Tue, 01"..., 311) = 311
> time(NULL)                              = 904674994
> write(18, "207.164.141.2 - - [01/Sep/1998:1"..., 80) = 80
> munmap(0x40019000, 12)                  = 0
> sigaction(SIGUSR1, {0x2066b58, [], SA_SIGINFO|SA_NOCLDSTOP|0x2001842}, {SIG_IGN}) = 0
> alarm(15)                               = 0
> read(3,  <unfinished ...>
> 
> 
> By the way, if anybody wants an account on this toy to play around with
> Linux on a StrongArm cpu, let me know.  
> 
> -Rasmus
> 
>