Hi Andrea,
> > just to make a quick test, can you try an hack like this combined with a
> > setting of elvtune -r 128 -w 256 on top of 2.4.20rc1?
> >
> > --- x/drivers/block/ll_rw_blk.c.~1~ Sat Nov 2 19:45:33 2002
> > +++ x/drivers/block/ll_rw_blk.c Sat Nov 16 19:44:20 2002
> > @@ -432,7 +432,7 @@ static void blk_init_free_list(request_q
> >
> > si_meminfo(&si);
> > megs = si.totalram >> (20 - PAGE_SHIFT);
> > - nr_requests = 128;
> > + nr_requests = 16;
> > if (megs < 32)
> > nr_requests /= 2;
> > blk_grow_request_list(q, nr_requests);
>
> hehe, Andrea, it seem's we both think of the same ... :-) ... I am just
> recompiling the kernel ... hang on.
Andrea, this makes a difference! The pausings are much less than before, but
still occur. Situation below.
Another thing I've noticed, while doing the "cp -a xyz abc" in
a loop the available memory decreases alot (silly caching of files)
Before copying:
---------------
MemTotal: 515992 kB
MemFree: 440876 kB
Buffers: 3808 kB
Cached: 24128 kB
While copying:
--------------
root@codeman:[/usr/src] # ./bla.sh
+ cd /usr/src
+ rm -rf linux-2.4.19-blaold linux-2.4.19-blanew
+ COUNT=0
+ echo 0
0
+ cp -a linux-2.4.19-vanilla linux-2.4.19-blaold
+ cp -a linux-2.4.19-vanilla linux-2.4.19-blanew
not yet finished the above and memory is this:
MemTotal: 515992 kB
MemFree: 3348 kB
Buffers: 12244 kB
Cached: 451608 kB
swap (500mb) turned off. Pausings are almost none. (without your patch /
elvtune) even there were massive pauses.
If swap is turned on, swapusage grows alot and then, if SWAP is used, we have
pauses (even more less than without your patch).
To free the used/cached memory I use umount /usr/src.
I think your proposal is good. Anything else I should test/change? Any further
informations/test I can/should run?
Thnx alot!
ciao, Marc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/