public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: linux 2.2.19pre and thttpd (VM-global problem?)
@ 2001-01-01  1:04 Jure Pecar
  0 siblings, 0 replies; 25+ messages in thread
From: Jure Pecar @ 2001-01-01  1:04 UTC (permalink / raw)
  To: andrea, jef; +Cc: linux-kernel

Hi again,

I can't manage to reproduce the problem on my home box, based on redhat7
... thttpd runs ok on 2.2.18 with raid patch, 2.2.18-cdhs
(www.linuxraid.org) and 2.2.19pre3aa4 ... I tought it might be some
compiler/glibc problem, but even if i get a kernel and a statically
compiled thttpd from the box that is making problems(rh6.0) and run it
here, it runs ok ... 
What more can i try? I'd really like to find out what's going on ... 

I checked those bits Alan Cox mentioned and cdhs patch puts them like
this (include/linux/fs.h btw):

#define BH_LowPrio      7       /* 1 if the buffer is lowprio */
#define BH_Wait_IO      8       /* 1 if we should throttle on this
buffer */

Andrea, in your pre3aa4 patch you put them vice versa:

#define BH_Wait_IO      7       /* 1 if we should throttle on this
buffer */
#define BH_LowPrio      8       /* 1 if the buffer is lowprio */

I dont think this really matters, but which way should be official? :)

and btw, happy new year to all of you.

-- 


Pegasus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: linux 2.2.19pre and thttpd (VM-global problem?)
@ 2001-01-01 21:56 Jure Pecar
  0 siblings, 0 replies; 25+ messages in thread
From: Jure Pecar @ 2001-01-01 21:56 UTC (permalink / raw)
  To: andrea, jef; +Cc: linux-kernel, thttpd

Hi again,

After more-than-expected amount of hours spent on this, i managed to
localize the problem and found a partial solution.
I ran a series of test with thttpd compiled on rh6 and rh7 serving a
couple of files on different kernels. In the first run i used 6 average
sized mp3s and could not reproduce the problem, but then i added a
couple of 100mb and 200mb mpeg videos and boing, there it was.

		libc		
kernel		version		result

2.2.18raid	2.1.3		ok
2.2.18raid	2.1.94		ok
2.2.18cdhs	2.1.3		crash at the third simultaneous connection
2.2.18cdhs	2.1.94		ok
2.2.19pre3aa4	2.1.3		ok
2.2.19pre3aa4	2.1.94		ok
2.4.0-test10	2.1.3		ok
2.4.0-test10	2.1.94		ok

Now i use thttpd statically compiled with newer libc with the 2.2.18cdhs
on the box that was making problems before and so far it runs smooth.
If anyone is interested of strace outputs of above tests and wants to
discover the source of the problem, i can help.

-- 


Pegasus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: linux 2.2.19pre and thttpd (VM-global problem?)
@ 2000-12-29 19:29 Matt Liotta
  2000-12-29 19:43 ` Andrea Arcangeli
  0 siblings, 1 reply; 25+ messages in thread
From: Matt Liotta @ 2000-12-29 19:29 UTC (permalink / raw)
  To: 'Andi Kleen', Andrea Arcangeli
  Cc: Alan Cox, Petru Paler, Jure Pecar, linux-kernel, thttpd

I wouldn't use cheap single CPU/NIC machines in the real world.  Certainly a
cluster of smaller machines does better then one big machine, but that
doesn't mean you should use too small of a machine.  Remember that as the
number of cluster nodes goes up the cluster becomes a management problem.  I
would use a cluster of dual CPU/NIC machines instead.  This gives you the
benefits of SMP machines along with the benefits of clusters.  It should
also allow your cluster to handle more load with less nodes then single
CPU/NIC machines.

With that being said Linux is proving me wrong in the real world.  Our
application server is dependant on pthreads (really just cloned process) and
as such doesn't scale well with Linux 2.2 on a dual CPU machine.  Our
benchmarks show that we can handle more load on a single CPU machine then a
dual CPU one with Linux 2.2.  However, it is encouraging to see that the
situation is reversed when using Linux 2.4.

-Matt

> -----Original Message-----
> From: Andi Kleen [mailto:ak@suse.de]
> Sent: Friday, December 29, 2000 11:14 AM
> To: Andrea Arcangeli
> Cc: Alan Cox; Petru Paler; Jure Pecar; linux-kernel@vger.kernel.org;
> thttpd@bomb.acme.com
> Subject: Re: linux 2.2.19pre and thttpd (VM-global problem?)
> 
> 
> On Fri, Dec 29, 2000 at 08:06:57PM +0100, Andrea Arcangeli wrote:
> > On Fri, Dec 29, 2000 at 06:50:18PM +0000, Alan Cox wrote:
> > > Your cgi will keep the other CPU occupied, or run two of 
> them. thttpd has
> > > superb scaling properties compared to say apache.
> > 
> > I think with 8 CPUs and 8 NICs (usual benchmark setup) you 
> want more than 1 cpu
> 
> That's a good benchmark setup when the benchmark requires a 
> single machine.
> 
> In the real world it often makes a lot of sense though to use 
> a cluster
> of cheap single CPU machines behind a load balancer (gives 
> you better fault 
> tolerance and is likely cheaper) 
> 
> For these thttpd is a nice web server.
> 
> -Andi
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: linux 2.2.19pre and thttpd (VM-global problem?)
@ 2000-12-29 16:38 Daniel R. Kegel
  2000-12-29 21:23 ` Aaron Sethman
  0 siblings, 1 reply; 25+ messages in thread
From: Daniel R. Kegel @ 2000-12-29 16:38 UTC (permalink / raw)
  To: linux-kernel

Andrea Arcangeli wrote:
> Petru Paler wrote: 
> > This is one of the main thttpd design points: run in a select() loop. Since 
> > it is intended for mainly static workloads, it performs quite well... 
> 
> It can't scale in SMP. 

thttpd is i/o bound, not CPU bound, so there's no need for SMP scaling.
It's an effective little server as long as the active document
tree fits in RAM.  

If it ain't broke, don't tell people how to fix it :-)

(If for some reason SMP scaling was desirable, the thttpd
way to do it would be to introduce one thread for each
CPU, and have each thread run the same select() loop.)
- Dan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 25+ messages in thread
* linux 2.2.19pre and thttpd (VM-global problem?)
@ 2000-12-29  1:32 Jure Pecar
  2000-12-29  2:29 ` Andrea Arcangeli
  0 siblings, 1 reply; 25+ messages in thread
From: Jure Pecar @ 2000-12-29  1:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: thttpd

Hi all,

I'm expiriencing a problem with thttpd web server
(www.acme.com/software/thttpd) on recent linux 2.2 kernels with Andrea's
VM-global patches. Without the patch server runs normally with its usual
dose of complaints on the linux platform (it's being developed on BSD
afaik), but with the patch it runs ok for about three days (depends on
traffic i guess), then enters into some state where it reports 'out of
memory' for every larger file (>1Mb) it starts serving and dies. When it
comes back up it dies again whitin 10 seconds. As this is not happening
on a stock kernel and the restart of the server itself has no efect, i
conclude it has to be something there in the VM-global that thttpd
doesnt really like. As the VM-global seems to be the only cure for the
VM_do_try_to_free_pages problem, which is an issue for me too, i'd
really like to hear some official words on this before 2.2.19 comes out
with VM-global ... and while i'm at it, can we expect ide patch in
2.2.19 too?


-- 


Pegasus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2001-01-01 22:27 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-01  1:04 linux 2.2.19pre and thttpd (VM-global problem?) Jure Pecar
  -- strict thread matches above, loose matches on Subject: below --
2001-01-01 21:56 Jure Pecar
2000-12-29 19:29 Matt Liotta
2000-12-29 19:43 ` Andrea Arcangeli
2000-12-29 16:38 Daniel R. Kegel
2000-12-29 21:23 ` Aaron Sethman
2000-12-29  1:32 Jure Pecar
2000-12-29  2:29 ` Andrea Arcangeli
2000-12-29  2:47   ` Andrea Arcangeli
2000-12-29  7:38     ` Petru Paler
2000-12-29 15:53       ` Andrea Arcangeli
2000-12-29 18:04         ` Petru Paler
2000-12-29 18:13           ` Jakob Østergaard
2000-12-29 18:21             ` Petru Paler
2000-12-29 18:56               ` Alan Cox
2000-12-29 19:11                 ` Andrea Arcangeli
2000-12-29 18:50         ` Alan Cox
2000-12-29 19:06           ` Andrea Arcangeli
2000-12-29 19:14             ` Andi Kleen
2000-12-29 22:40             ` Jakob Østergaard
2000-12-30  4:21             ` dean gaudet
2000-12-30 17:43               ` Andrea Arcangeli
2000-12-29  8:40   ` Jure Pecar
2000-12-29 11:37     ` Alan Cox
2000-12-29 15:36     ` Andrea Arcangeli

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