mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Monster file_lock_cache entry in /proc/slabinfo
  2003-09-15 20:27 Monster file_lock_cache entry in /proc/slabinfo James H. Cloos Jr.
@ 2003-09-15 20:25 ` Andrew Morton
  2003-09-15 20:59   ` Martin Josefsson
  2003-09-15 20:42 ` Chris Wright
  1 sibling, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2003-09-15 20:25 UTC (permalink / raw)
  To: James H. Cloos Jr.; +Cc: linux-kernel

"James H. Cloos Jr." <cloos@jhcloos.com> wrote:
>
> My notebook has been slowing down the longer it is up for several
> kernel versions.  Disk i/o seems to be the chokepoint.
> 
> I grabbed slabinfo before today's reboot.  The box had been up for 10
> days -- it starts to become painful after about five or six days.
> 
> The file_lock_cache entry seemed rather engrossed:

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test5/2.6.0-test5-mm2/broken-out/file-locking-leak-fix.patch

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

* Monster file_lock_cache entry in /proc/slabinfo
@ 2003-09-15 20:27 James H. Cloos Jr.
  2003-09-15 20:25 ` Andrew Morton
  2003-09-15 20:42 ` Chris Wright
  0 siblings, 2 replies; 7+ messages in thread
From: James H. Cloos Jr. @ 2003-09-15 20:27 UTC (permalink / raw)
  To: linux-kernel

My notebook has been slowing down the longer it is up for several
kernel versions.  Disk i/o seems to be the chokepoint.

I grabbed slabinfo before today's reboot.  The box had been up for 10
days -- it starts to become painful after about five or six days.

The file_lock_cache entry seemed rather engrossed:

file_lock_cache   2339148 2339148     92   42    1 : \
tunables  120   60    0 : \
slabdata  55694  55694      0

55694 slabs containing 2339148 objs?

The biggest user of file locking would be incoming email.  uucico(8)
polls a remote server, injects the mail to postfix(8) via postfix's
/usr/sbin/sendmail.  Postfix delivers via procmail(1), which pipes
the mail through SpamAssassin and then delivers to foo/. style 
destinations.  The recipies all start with :0:, so a local lock
file is used in each directory.  The destination filesystem is
ext3 with htree (and the default journal style).

I presume something is calling locks_alloc_lock but then failing to
also call locks_free_lock, but /proc/locks only ever shows around 6 or
so entries....

Any suggestions on debugging this?

-JimC


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

* Re: Monster file_lock_cache entry in /proc/slabinfo
  2003-09-15 20:27 Monster file_lock_cache entry in /proc/slabinfo James H. Cloos Jr.
  2003-09-15 20:25 ` Andrew Morton
@ 2003-09-15 20:42 ` Chris Wright
  2003-09-15 20:56   ` James H. Cloos Jr.
  1 sibling, 1 reply; 7+ messages in thread
From: Chris Wright @ 2003-09-15 20:42 UTC (permalink / raw)
  To: James H. Cloos Jr.; +Cc: linux-kernel

* James H. Cloos Jr. (cloos@jhcloos.com) wrote:
> 
> The file_lock_cache entry seemed rather engrossed:

Is this a recent 2.6.0-test?  Matthew Wilcox posted a patch for this:

http://ftp.linux.org.uk/pub/linux/willy/patches/flock-memleak.diff

You might give that a try.
thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

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

* Re: Monster file_lock_cache entry in /proc/slabinfo
  2003-09-15 20:42 ` Chris Wright
@ 2003-09-15 20:56   ` James H. Cloos Jr.
  2003-09-15 21:05     ` Martin Josefsson
  2003-09-15 21:10     ` Chris Wright
  0 siblings, 2 replies; 7+ messages in thread
From: James H. Cloos Jr. @ 2003-09-15 20:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton, Chris Wright

Is file_lock_cache only a recent issue, then?  The slowdown has been
going on for at least the last 20 or so release tags.

If this is new I probably need to look at htree or the possibility
that it is a disk firmware issue (it being a laptop and all)....

Thanks for both replies.

-JimC


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

* Re: Monster file_lock_cache entry in /proc/slabinfo
  2003-09-15 20:25 ` Andrew Morton
@ 2003-09-15 20:59   ` Martin Josefsson
  0 siblings, 0 replies; 7+ messages in thread
From: Martin Josefsson @ 2003-09-15 20:59 UTC (permalink / raw)
  To: Andrew Morton; +Cc: James H. Cloos Jr., linux-kernel

On Mon, 2003-09-15 at 22:25, Andrew Morton wrote:

> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test5/2.6.0-test5-mm2/broken-out/file-locking-leak-fix.patch

Andrew, please replace that patch with

http://ftp.linux.org.uk/pub/linux/willy/patches/flock-memleak2.diff

Which is the second version of this bugfixing, it fixes this problem and
another leak. I can't reproduce any more leaks with this patch ontop of
-mm1.

-- 
/Martin

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

* Re: Monster file_lock_cache entry in /proc/slabinfo
  2003-09-15 20:56   ` James H. Cloos Jr.
@ 2003-09-15 21:05     ` Martin Josefsson
  2003-09-15 21:10     ` Chris Wright
  1 sibling, 0 replies; 7+ messages in thread
From: Martin Josefsson @ 2003-09-15 21:05 UTC (permalink / raw)
  To: James H. Cloos Jr.; +Cc: linux-kernel, Andrew Morton, Chris Wright

On Mon, 2003-09-15 at 22:56, James H. Cloos Jr. wrote:
> Is file_lock_cache only a recent issue, then?  The slowdown has been
> going on for at least the last 20 or so release tags.
> 
> If this is new I probably need to look at htree or the possibility
> that it is a disk firmware issue (it being a laptop and all)....

This has been with us for some time, it just got fixed :)

-- 
/Martin

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

* Re: Monster file_lock_cache entry in /proc/slabinfo
  2003-09-15 20:56   ` James H. Cloos Jr.
  2003-09-15 21:05     ` Martin Josefsson
@ 2003-09-15 21:10     ` Chris Wright
  1 sibling, 0 replies; 7+ messages in thread
From: Chris Wright @ 2003-09-15 21:10 UTC (permalink / raw)
  To: James H. Cloos Jr.; +Cc: linux-kernel, Andrew Morton, Chris Wright

* James H. Cloos Jr. (cloos@jhcloos.com) wrote:
> Is file_lock_cache only a recent issue, then?  The slowdown has been
> going on for at least the last 20 or so release tags.

Comparing the patch lines to the repo history in bk, this looks like
it's been around since 2.5.39 or so...I suspect this patch is all you
need.

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

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

end of thread, other threads:[~2003-09-15 21:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15 20:27 Monster file_lock_cache entry in /proc/slabinfo James H. Cloos Jr.
2003-09-15 20:25 ` Andrew Morton
2003-09-15 20:59   ` Martin Josefsson
2003-09-15 20:42 ` Chris Wright
2003-09-15 20:56   ` James H. Cloos Jr.
2003-09-15 21:05     ` Martin Josefsson
2003-09-15 21:10     ` Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®