linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [BUG] Error reading multiple large files
       [not found] <Pine.LNX.4.33.0201071413250.5017-100000@coffee.psychology.mcmaster.ca>
@ 2002-01-09 13:56 ` Roy Sigurd Karlsbakk
  2002-01-09 13:59   ` Jens Axboe
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Roy Sigurd Karlsbakk @ 2002-01-09 13:56 UTC (permalink / raw)
  To: Mark Hahn; +Cc: linux-kernel

> you really should try akpm's "[patch, CFT] improved disk read latency"
> patch.  it sounds almost perfect for your application.

hi

It seemed like it helped first, but after a while, some 99 processes went
Defunct, and locked. After this, the total 'bi' as reported from vmstat
went down to ~ 900kB per sec

What should I do? Run Windoze?

--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.


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

* Re: [BUG] Error reading multiple large files
  2002-01-09 13:56 ` [BUG] Error reading multiple large files Roy Sigurd Karlsbakk
@ 2002-01-09 13:59   ` Jens Axboe
  2002-01-09 14:03     ` Roy Sigurd Karlsbakk
  2002-01-09 15:44     ` [BUG] Error reading multiple large files (analyzing... ?) Roy Sigurd Karlsbakk
  2002-01-09 14:03   ` [BUG] Error reading multiple large files Rik van Riel
  2002-01-09 14:25   ` [BUG] Error reading multiple large files MrChuoi
  2 siblings, 2 replies; 8+ messages in thread
From: Jens Axboe @ 2002-01-09 13:59 UTC (permalink / raw)
  To: Roy Sigurd Karlsbakk; +Cc: Mark Hahn, linux-kernel

On Wed, Jan 09 2002, Roy Sigurd Karlsbakk wrote:
> > you really should try akpm's "[patch, CFT] improved disk read latency"
> > patch.  it sounds almost perfect for your application.
> 
> hi
> 
> It seemed like it helped first, but after a while, some 99 processes went
> Defunct, and locked. After this, the total 'bi' as reported from vmstat
> went down to ~ 900kB per sec

Bad news for Andrew's patch, however I really don't think it would have
helped you much in the first place. The problem seems to be down to
loosing read-ahead when cache ends up eating all of available memory,
I've seen this effect myself too. Maybe the vm needs to be more
aggressive about tossing out pages when this happens, I'm quite sure
that would help tremendously for this workload.

-- 
Jens Axboe


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

* Re: [BUG] Error reading multiple large files
  2002-01-09 13:56 ` [BUG] Error reading multiple large files Roy Sigurd Karlsbakk
  2002-01-09 13:59   ` Jens Axboe
@ 2002-01-09 14:03   ` Rik van Riel
  2002-01-09 14:05     ` Roy Sigurd Karlsbakk
  2002-01-09 18:02     ` [BUG] Error reading multiple large files :-) Roy Sigurd Karlsbakk
  2002-01-09 14:25   ` [BUG] Error reading multiple large files MrChuoi
  2 siblings, 2 replies; 8+ messages in thread
From: Rik van Riel @ 2002-01-09 14:03 UTC (permalink / raw)
  To: Roy Sigurd Karlsbakk; +Cc: Mark Hahn, linux-kernel

On Wed, 9 Jan 2002, Roy Sigurd Karlsbakk wrote:

> > you really should try akpm's "[patch, CFT] improved disk read latency"
> > patch.  it sounds almost perfect for your application.

> It seemed like it helped first, but after a while, some 99 processes
> went Defunct, and locked. After this, the total 'bi' as reported from
> vmstat went down to ~ 900kB per sec
>
> What should I do?

I've done a little bit of low memory testing with my -rmap
VM patch, the system seems to be working just fine with 8MB
of RAM ...

If you have the time, could you try the following patch ?

	http://surriel.com/patches/2.4/2.4.17-rmap-11a


regards,

Rik
-- 
"Linux holds advantages over the single-vendor commercial OS"
    -- Microsoft's "Competing with Linux" document

http://www.surriel.com/		http://distro.conectiva.com/


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

* Re: [BUG] Error reading multiple large files
  2002-01-09 13:59   ` Jens Axboe
@ 2002-01-09 14:03     ` Roy Sigurd Karlsbakk
  2002-01-09 15:44     ` [BUG] Error reading multiple large files (analyzing... ?) Roy Sigurd Karlsbakk
  1 sibling, 0 replies; 8+ messages in thread
From: Roy Sigurd Karlsbakk @ 2002-01-09 14:03 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Mark Hahn, linux-kernel

> > It seemed like it helped first, but after a while, some 99 processes went
> > Defunct, and locked. After this, the total 'bi' as reported from vmstat
> > went down to ~ 900kB per sec
>
> Bad news for Andrew's patch, however I really don't think it would have
> helped you much in the first place. The problem seems to be down to
> loosing read-ahead when cache ends up eating all of available memory,
> I've seen this effect myself too. Maybe the vm needs to be more
> aggressive about tossing out pages when this happens, I'm quite sure
> that would help tremendously for this workload.

Thanks for answering. I'm really close to giving up and have already
started testing on *BSD unices.

It seems reasonable if that (tossing old pages) could be the problem.

Thanks, guys

--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.


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

* Re: [BUG] Error reading multiple large files
  2002-01-09 14:03   ` [BUG] Error reading multiple large files Rik van Riel
@ 2002-01-09 14:05     ` Roy Sigurd Karlsbakk
  2002-01-09 18:02     ` [BUG] Error reading multiple large files :-) Roy Sigurd Karlsbakk
  1 sibling, 0 replies; 8+ messages in thread
From: Roy Sigurd Karlsbakk @ 2002-01-09 14:05 UTC (permalink / raw)
  To: Rik van Riel; +Cc: Mark Hahn, linux-kernel

> I've done a little bit of low memory testing with my -rmap
> VM patch, the system seems to be working just fine with 8MB
> of RAM ...
>
> If you have the time, could you try the following patch ?
>
> 	http://surriel.com/patches/2.4/2.4.17-rmap-11a

Do you think this is the case? I've 1GB memory in the box (no highmem)

--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.


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

* Re: [BUG] Error reading multiple large files
  2002-01-09 13:56 ` [BUG] Error reading multiple large files Roy Sigurd Karlsbakk
  2002-01-09 13:59   ` Jens Axboe
  2002-01-09 14:03   ` [BUG] Error reading multiple large files Rik van Riel
@ 2002-01-09 14:25   ` MrChuoi
  2 siblings, 0 replies; 8+ messages in thread
From: MrChuoi @ 2002-01-09 14:25 UTC (permalink / raw)
  To: Roy Sigurd Karlsbakk; +Cc: linux-kernel

On Wednesday 09 January 2002 08:56 pm, Roy Sigurd Karlsbakk wrote:
> > you really should try akpm's "[patch, CFT] improved disk read latency"
> > patch.  it sounds almost perfect for your application.
>
> hi
>
> It seemed like it helped first, but after a while, some 99 processes went
> Defunct, and locked. After this, the total 'bi' as reported from vmstat
> went down to ~ 900kB per sec
>
> What should I do? Run Windoze?
Windoze can do it better ? :-\

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

* Re: [BUG] Error reading multiple large files (analyzing... ?)
  2002-01-09 13:59   ` Jens Axboe
  2002-01-09 14:03     ` Roy Sigurd Karlsbakk
@ 2002-01-09 15:44     ` Roy Sigurd Karlsbakk
  1 sibling, 0 replies; 8+ messages in thread
From: Roy Sigurd Karlsbakk @ 2002-01-09 15:44 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Mark Hahn, linux-kernel

> Bad news for Andrew's patch, however I really don't think it would have
> helped you much in the first place. The problem seems to be down to
> loosing read-ahead when cache ends up eating all of available memory,
> I've seen this effect myself too. Maybe the vm needs to be more
> aggressive about tossing out pages when this happens, I'm quite sure
> that would help tremendously for this workload.

I just wanted to tell I've tried this on 2.4.9 (as a beleive is before the new
vm came in)with the same result. What's interesting, is that the error shows up,
not at the time the buffer memory is used, but seemingly after it's been used
_twice_ (or three times?).

Can this help anyone getting a clue what the h... happens here?

The computer's got 1GB memory. Highmem is disabled.

roy

vmstat output:
---
   procs                      memory    swap          io     system         cpu
 r  b  w   swpd   free   buff  cache  si  so    bi    bo   in    cs  us  sy  id
 0 100  0      0 511448   2492 244828   0   0 29938     0 1970   882   1  15  84
 0 100  0      0 440652   2516 313320   0   0 34258     0  407   338   1   6  93
 0 100  0      0 367956   2608 383576   0   0 35164     0  433   355   0   6  93
 0 100  0      0 298868   2696 450348   0   0 34382     0  414   363   1   6  93
 0 100  0      0 229452   2876 517344   0   0 32620     0 1037   560   1  12  87
 0 100  0      0 158716   3040 585636   0   0 34238     0  429   353   0   7  93
 0 100  0      0  88372   3156 653596   0   0 34034     0  436   278   0   7  92
 0 100  0      0  19068   3204 720616   0   0 33550     0  444   219   0   9  91
 0 100  0      0   2560   3284 737580   0   0 38622     0  468  1282   1  24  75
 0 100  0      0   2768   3360 737340   0   0 36626     0  664  2763   1  23  76
 0 100  0      0   2816   3440 737120   0   0 35466     0  559  2262   1  18  81
 0 100  0      0   3056   3500 736716   0   0 36492     0  486  1963   1  19  80
 0 100  0      0   3056   3548 736708   0   0 39018     0  543  2101   1  14  86
 0 100  0      0   3056   3628 736508   0   0 36868     0  875  1707   1  17  83
 0 100  0      0   2856   3688 736728   0   0 29708     0  493  1793   0  14  86
 0 100  0      0   3056   3716 736448   0   0 32000    34  526  1888   1  16  83
 0 100  0      0   3056   3740 736448   0   0 29102     0  563  1400   1  14  85
 0 100  0      0   3056   3764 736396   0   0 24992     0  618  1266   1   9  90
 0 100  0      0   3056   3780 736384   0   0 24678     0  671  1184   1  13  86
 2  98  0      0   3004   3792 736464   0   0 20288     0 1071  1537   1  16  82
 0 100  0      0   3008   3804 736376   0   0 14620     0  932   812   0  10  90
 0 100  0      0   3008   3804 736372   0   0  6776     0 1122   726   1   8  90
 0 100  0      0   3056   3812 736328   0   0  4326     0 1195   714   0   6  93
 0 100  0      0   3056   3812 736352   0   0  1826     0 1142   623   0   4  96
 0 100  0      0   3056   3812 736364   0   0  1026     0 1093   563   0   5  95
 0 100  0      0   3056   3812 736364   0   0  1058     0 1114   567   1   3  96
 0 100  0      0   3056   3812 736360   0   0  1066     0 1124   586   0   3  96
 0 100  0      0   3056   3816 736356   0   0  2474     0 1112   574   0   4  96


--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.


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

* Re: [BUG] Error reading multiple large files :-)
  2002-01-09 14:03   ` [BUG] Error reading multiple large files Rik van Riel
  2002-01-09 14:05     ` Roy Sigurd Karlsbakk
@ 2002-01-09 18:02     ` Roy Sigurd Karlsbakk
  1 sibling, 0 replies; 8+ messages in thread
From: Roy Sigurd Karlsbakk @ 2002-01-09 18:02 UTC (permalink / raw)
  To: Rik van Riel; +Cc: Mark Hahn, linux-kernel

Thanks, guys!

This actually solved the problem, and even gave me a little increase in
read speed as a bonus.

Is this somehow planned for a 2.4 merge?

roy

On Wed, 9 Jan 2002, Rik van Riel wrote:

> On Wed, 9 Jan 2002, Roy Sigurd Karlsbakk wrote:
>
> > > you really should try akpm's "[patch, CFT] improved disk read latency"
> > > patch.  it sounds almost perfect for your application.
>
> > It seemed like it helped first, but after a while, some 99 processes
> > went Defunct, and locked. After this, the total 'bi' as reported from
> > vmstat went down to ~ 900kB per sec
> >
> > What should I do?
>
> I've done a little bit of low memory testing with my -rmap
> VM patch, the system seems to be working just fine with 8MB
> of RAM ...
>
> If you have the time, could you try the following patch ?
>
> 	http://surriel.com/patches/2.4/2.4.17-rmap-11a
>
>
> regards,
>
> Rik
> --
> "Linux holds advantages over the single-vendor commercial OS"
>     -- Microsoft's "Competing with Linux" document
>
> http://www.surriel.com/		http://distro.conectiva.com/
>

--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA

Computers are like air conditioners.
They stop working when you open Windows.


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

end of thread, other threads:[~2002-01-09 18:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.33.0201071413250.5017-100000@coffee.psychology.mcmaster.ca>
2002-01-09 13:56 ` [BUG] Error reading multiple large files Roy Sigurd Karlsbakk
2002-01-09 13:59   ` Jens Axboe
2002-01-09 14:03     ` Roy Sigurd Karlsbakk
2002-01-09 15:44     ` [BUG] Error reading multiple large files (analyzing... ?) Roy Sigurd Karlsbakk
2002-01-09 14:03   ` [BUG] Error reading multiple large files Rik van Riel
2002-01-09 14:05     ` Roy Sigurd Karlsbakk
2002-01-09 18:02     ` [BUG] Error reading multiple large files :-) Roy Sigurd Karlsbakk
2002-01-09 14:25   ` [BUG] Error reading multiple large files MrChuoi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).