[BUG] in sendfile() under high load

Roy Sigurd Karlsbakk <[email protected]>
Newsgroups gmane.network.tux
Organization Pronto TV AS
Message-ID <[email protected]>
hi

After doing some testing with tux, getting something like a I/O or VM chrash 
whenever downloads start stressing I/O heavily, I tried to make a small 
server myself, using sendfile(). This, however, shows the same behaviour. 
Testing a small app, I use xinetd:

fd = open();
sendfile(0, fd ...);

this works fine until there's ~20 downloads, at which point the I/O just 
messes up. everything goes SLOOOOW and system CPU time is stable at 100%. It 
should be noted that before this limit is reached, the system is hardly using 
any system time at all. After stopping the downloads, the system moves back 
to good behavior, nice I/O speed (~95MB/s disk-to-memory) etc. The system 
also performs well with few clients.

Detailed configuration:

- 4 IBM 40gig disks in RAID-0. chunk size 1MB
- 1 x athlon 1GHz
- 1GB RAM - no highmem (900 meg)
- kernel 2.4.19pre7 + patch from Andrew Morton to ditch buffers early 
	(thread: [BUG] 2.4 VM sucks. Again)
- gigEthernet between test client and server

Anyone got a clue?

roy
-- 
Roy Sigurd Karlsbakk, Datavaktmester

Computers are like air conditioners.
They stop working when you open Windows.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.