Re: Rtld object tasting [Was: Re: wired memory - again!]

2012-06-13 Thread Konstantin Belousov
On Wed, Jun 13, 2012 at 03:17:56PM -0500, Alan Cox wrote: > On Wed, Jun 13, 2012 at 2:12 PM, Konstantin Belousov > wrote: > > > On Wed, Jun 13, 2012 at 07:14:09AM -0600, Ian Lepore wrote: > > > http://lists.freebsd.org/pipermail/freebsd-arm/2012-January/003288.html > > > > The map_object.c patch

Re: Rtld object tasting [Was: Re: wired memory - again!]

2012-06-13 Thread Alan Cox
On Wed, Jun 13, 2012 at 2:12 PM, Konstantin Belousov wrote: > On Wed, Jun 13, 2012 at 07:14:09AM -0600, Ian Lepore wrote: > > http://lists.freebsd.org/pipermail/freebsd-arm/2012-January/003288.html > > The map_object.c patch is step in the almost right direction, I wanted > to remove the static pa

Rtld object tasting [Was: Re: wired memory - again!]

2012-06-13 Thread Konstantin Belousov
On Wed, Jun 13, 2012 at 07:14:09AM -0600, Ian Lepore wrote: > http://lists.freebsd.org/pipermail/freebsd-arm/2012-January/003288.html The map_object.c patch is step in the almost right direction, I wanted to remove the static page-sized buffer from get_elf_header for long time. It works because rt

Re: wired memory - again!

2012-06-13 Thread Nathan Whitehorn
On 06/13/12 13:22, Konstantin Belousov wrote: On Wed, Jun 13, 2012 at 07:14:09AM -0600, Ian Lepore wrote: On Tue, 2012-06-12 at 23:45 +0300, Konstantin Belousov wrote: On Tue, Jun 12, 2012 at 08:51:34AM -0600, Ian Lepore wrote: On Sat, 2012-06-09 at 22:45 +0200, Wojciech Puchar wrote: First,

Re: wired memory - again!

2012-06-13 Thread Konstantin Belousov
On Wed, Jun 13, 2012 at 07:14:09AM -0600, Ian Lepore wrote: > On Tue, 2012-06-12 at 23:45 +0300, Konstantin Belousov wrote: > > On Tue, Jun 12, 2012 at 08:51:34AM -0600, Ian Lepore wrote: > > > On Sat, 2012-06-09 at 22:45 +0200, Wojciech Puchar wrote: > > > > > > > > > > First, all memory allocated

Re: wired memory - again!

2012-06-13 Thread Ian Lepore
On Tue, 2012-06-12 at 23:45 +0300, Konstantin Belousov wrote: > On Tue, Jun 12, 2012 at 08:51:34AM -0600, Ian Lepore wrote: > > On Sat, 2012-06-09 at 22:45 +0200, Wojciech Puchar wrote: > > > > > > > > First, all memory allocated by UMA and consequently malloc(9) is > > > > wired. In other words, a

Re: wired memory - again!

2012-06-12 Thread Konstantin Belousov
On Tue, Jun 12, 2012 at 08:51:34AM -0600, Ian Lepore wrote: > On Sat, 2012-06-09 at 22:45 +0200, Wojciech Puchar wrote: > > > > > > First, all memory allocated by UMA and consequently malloc(9) is > > > wired. In other words, almost all memory used by kernel is accounted > > > as wired. > > > > > y

Re: wired memory - again!

2012-06-12 Thread Ian Lepore
On Sat, 2012-06-09 at 22:45 +0200, Wojciech Puchar wrote: > > > > First, all memory allocated by UMA and consequently malloc(9) is > > wired. In other words, almost all memory used by kernel is accounted > > as wired. > > > yes i understand this. still i found no way how to find out what allocated

Re: wired memory - again!

2012-06-10 Thread rank1seeker
- Original Message - From: Ian Lepore To: Wojciech Puchar Cc: freebsd-hackers@freebsd.org Date: Sat, 09 Jun 2012 10:27:03 -0600 Subject: Re: wired memory - again! > On Sat, 2012-06-09 at 09:21 +0200, Wojciech Puchar wrote: > > top reports wired memory 128MB > > >

Re: wired memory - again!

2012-06-09 Thread Wojciech Puchar
First, all memory allocated by UMA and consequently malloc(9) is wired. In other words, almost all memory used by kernel is accounted as wired. yes i understand this. still i found no way how to find out what allocated that much. Second, the buffer cache wires the pages which are inserted i

Re: wired memory - again!

2012-06-09 Thread Wojciech Puchar
The kernel auto-tunes the vfs buffer space using the formula "for the first 64 MB of ram use 1/4 for buffers, plus 1/10 of the ram over 64 i always limit it by kern.maxbcache=2000 on 1GB RAM machine with lots of I/O but actually with default MAXBSIZE and little I/O you can use safely 1MB

Re: wired memory - again!

2012-06-09 Thread Konstantin Belousov
On Sat, Jun 09, 2012 at 10:27:03AM -0600, Ian Lepore wrote: > On Sat, 2012-06-09 at 09:21 +0200, Wojciech Puchar wrote: > > top reports wired memory 128MB > > > > > > WHERE it is used? below results of vmstat -m and vmstat -z > > values does not sum up even to half of it > > FreeBSD 9 - few days

Re: wired memory - again!

2012-06-09 Thread Ian Lepore
On Sat, 2012-06-09 at 09:21 +0200, Wojciech Puchar wrote: > top reports wired memory 128MB > > > WHERE it is used? below results of vmstat -m and vmstat -z > values does not sum up even to half of it > FreeBSD 9 - few days old. > > What i am missing and why there are SO MUCH wired memory on 1GB

wired memory - again!

2012-06-09 Thread Wojciech Puchar
top reports wired memory 128MB WHERE it is used? below results of vmstat -m and vmstat -z values does not sum up even to half of it FreeBSD 9 - few days old. What i am missing and why there are SO MUCH wired memory on 1GB machine without X11 or virtualbox Type InUse MemUse HighUse