Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 1998 03:29:32 -0700
From:      Don Lewis <Don.Lewis@tsc.tdk.com>
To:        Mike Smith <mike@smith.net.au>, gibbs@plutotech.com
Cc:        current@FreeBSD.ORG
Subject:   Re: wierd kernel memory use statistics
Message-ID:  <199809161029.DAA01972@salsa.gv.tsc.tdk.com>
In-Reply-To: Mike Smith <mike@smith.net.au> "Re: wierd kernel memory use statistics" (Sep 16, 12:21am)

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 16, 12:21am, Mike Smith wrote:
} Subject: Re: wierd kernel memory use statistics
} > On Sep 15, 11:59pm, Mike Smith wrote:
} > } Subject: Re: wierd kernel memory use statistics
} > } > 
} > } > vmstat -m tells me:
} > } > 
} > } > Memory statistics by type                          Type  Kern
} > } >         Type  InUse MemUse HighUse  Limit Requests Limit Limit Size(s)
} > } > ...
} > } >        devbuf   257   181K    181K 10406K      565    0     0  16,32,64,128,256,512,1K,2K,4K,16K,32K
} > } >          mbuf     1     2K      2K 10406K        1    0     0  2K
} > } >          temp    -9   -19K      1K 10406K      273    0     0  16,32,64,256,512,1K,4K
} > } >           kld     1     1K      1K 10406K        1    0     0  32
} > } > 
} > } > The numbers for "temp" look pretty suspicious.
} > } 
} > } Someone is freeing blocks to the M_TEMP pool that were not allocated 
} > } from it.  Does this happen at a reasonable rate?  Can you see any other 
} > } class that looks like it might be leaking?
} > 
} > The numbers seem to be static.  They haven't changed in the last couple
} > of hours since I rebooted.  I've done a make world in the meantime.  The
} > kernel is a fairly fresh and has CAM+softupdates.
} 
} Sounds like another CAM wrinkle; I expect we're going to see a few of 
} these before the week is out.  It shouldn't be particularly harmful - 
} the numbers are just for accounting's sake.

Good call.

--- cam/cam_xpt.c.orig	Tue Sep 15 20:32:09 1998
+++ cam/cam_xpt.c	Wed Sep 16 03:08:41 1998
@@ -5137,7 +5137,7 @@
 static void
 probecleanup(struct cam_periph *periph)
 {
-	free(periph->softc, M_TEMP);
+	free(periph->softc, M_DEVBUF);
 }
 
 static void

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809161029.DAA01972>