public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: Andrea Arcangeli <andrea@suse.de>, Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.[45] fixes for design locking bug in wait_on_page/wait_on_buffer/get_request_wait
Date: Sat, 16 Nov 2002 22:55:43 +0100	[thread overview]
Message-ID: <200211162235.39620.m.c.p@wolk-project.de> (raw)
In-Reply-To: <200211161958.57677.m.c.p@wolk-project.de>

On Saturday 16 November 2002 19:58, Marc-Christian Petersen wrote:

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



  reply	other threads:[~2002-11-16 21:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-16 18:58 2.[45] fixes for design locking bug in wait_on_page/wait_on_buffer/get_request_wait Marc-Christian Petersen
2002-11-16 21:55 ` Marc-Christian Petersen [this message]
2002-11-17 17:37   ` Marc-Christian Petersen
2002-11-17 19:19     ` Folkert van Heusden
  -- strict thread matches above, loose matches on Subject: below --
2002-11-16 16:24 Marc-Christian Petersen
2002-11-16 16:59 ` Andrea Arcangeli
2002-11-16 17:23   ` Marc-Christian Petersen
2002-11-16 17:32     ` Andrea Arcangeli
2002-11-16 17:43       ` Marc-Christian Petersen
2002-11-16 18:46         ` Andrea Arcangeli
2002-11-12  3:57 Andrea Arcangeli
2002-11-12  8:50 ` Andrew Morton
2002-11-12 18:15   ` Andrea Arcangeli
2002-11-12 19:46     ` Andrew Morton
2002-11-13  0:33       ` Andrea Arcangeli
2002-11-13  1:01         ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200211162235.39620.m.c.p@wolk-project.de \
    --to=m.c.p@wolk-project.de \
    --cc=akpm@digeo.com \
    --cc=andrea@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox