All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Volkoff <vdb@mail.ru>
To: linux-kernel@vger.kernel.org
Subject: Re: Unfreeable buffer/cache problem in 2.4.17-rc1 still there
Date: Tue, 18 Dec 2001 07:26:56 +0300	[thread overview]
Message-ID: <20011218072656.D1841@localhost> (raw)
In-Reply-To: <20011216223909.A230@localhost> <01121715011208.02146@manta>
In-Reply-To: <01121715011208.02146@manta>; from vda@port.imtp.ilyichevsk.odessa.ua on Mon, Dec 17, 2001 at 03:01:12PM -0200

On Mon, Dec 17, 2001 at 03:01:12PM -0200, vda wrote:
> >     if (r == -1) {
> >       printf("unable to write\n");
> >       close(fd);
> >       return;
> >     }
> >     close(fd);
> >     sleep(1);
> >   }
> > }
> > // end test.c
> 
> I removed sleep(1). Is it needed?
>

Yes, you need it in order to see the memory leakage.
 
> After 10000+ runs of this proggy swap usage isn't changed on 2.4.17-pre7.
> top reports constant 2304K of swap usage.

I know. You'll notice this effect only after 1000000+ runs.
Try it again with sleep(1).

> --
> vda
> 

-- 

    DV

  reply	other threads:[~2001-12-18  4:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-16 19:39 Unfreeable buffer/cache problem in 2.4.17-rc1 still there Dmitry Volkoff
2001-12-17 17:01 ` vda
2001-12-18  4:26   ` Dmitry Volkoff [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-16 20:41 Willy Tarreau
     [not found] <Pine.LNX.4.33.0112151141280.19022-100000@coffee.psychology.mcmaster.ca>
2001-12-15 17:09 ` Chris Chabot
2001-12-15 16:05 Ed Tomlinson
2001-12-15 12:36 Chris Chabot
     [not found] ` <004601c18567$a8be1600$0801a8c0@Stev.org>
2001-12-15 13:42   ` Chris Chabot
2001-12-15 14:24 ` Andrea Arcangeli
2001-12-15 16:05   ` Chris Chabot
2001-12-15 16:09     ` Ken Brownfield

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=20011218072656.D1841@localhost \
    --to=vdb@mail.ru \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.