Re: FreeBSD 8.2 - active plus inactive memory leak!?

2012-03-07 Thread Luke Marsden
have some tuning... kern.maxfiles: 100 vm.pmap.pv_entry_max: 73296250 Could that be contributing to so much active + inactive memory (5GB+ more than expected), or do PV entries live in wired e.g. kernel memory? On Tue, 2012-03-06 at 17:48 -0700, Ian Lepore wrote: In my experience, the bulk

Re: FreeBSD 8.2 - active plus inactive memory leak!?

2012-03-07 Thread J B
On Wed, 07 Mar 2012 10:23:38 +0200, Konstantin Belousov wrote: On Wed, Mar 07, 2012 at 12:36:21AM +, Luke Marsden wrote: ... I'm trying to confirm that, on a system with no pages swapped out, that the following is a true statement: a page is accounted for in active + inactive if

Re: FreeBSD 8.2 - active plus inactive memory leak!?

2012-03-07 Thread Luke Marsden
On Wed, 2012-03-07 at 13:33 +0100, J B wrote: On Wed, 07 Mar 2012 10:23:38 +0200, Konstantin Belousov wrote: On Wed, Mar 07, 2012 at 12:36:21AM +, Luke Marsden wrote: ... I'm trying to confirm that, on a system with no pages swapped out, that the following is a true statement:

Re: FreeBSD 8.2 - active plus inactive memory leak!?

2012-03-06 Thread Chuck Swiger
in 'top') is as follows: * Active / inactive memory is the same thing: resident memory from processes in use. Being in the inactive as opposed to active list simply indicates that the pages in question are less recently used and therefore more likely to get swapped out

Re: FreeBSD 8.2 - active plus inactive memory leak!?

2012-03-06 Thread Luke Marsden
accounted for in the resident memory lists of all the processes on the system (as per the output of 'top' and 'ps') Therefore the active + inactive memory should always be less than or equal to the sum of the resident memory of all the processes on the system, right

Re: FreeBSD 8.2 - active plus inactive memory leak!?

2012-03-06 Thread RW
for read-only text pages from libraries which have not been used yet or which have been malloc()'d but not yet written-to. Yes. My understanding for the values for the system as a whole (at the top in 'top') is as follows: * Active / inactive memory is the same thing

Inactive memory

2005-02-08 Thread Pat Maddox
I've always got a lot of inactive memory on my machine, around 520MB or so. While doing a portupgrade, the free memory dropped to around 13MB. I'm just curious what exactly the inactive memory is. Will the OS use the inactive memory before dipping into swap? Or is that memory off limits now

Re: Inactive memory

2005-02-08 Thread Erik Trulsson
On Tue, Feb 08, 2005 at 02:33:14PM -0700, Pat Maddox wrote: I've always got a lot of inactive memory on my machine, around 520MB or so. While doing a portupgrade, the free memory dropped to around 13MB. I'm just curious what exactly the inactive memory is. Will the OS use the inactive

Re: Inactive memory

2005-02-08 Thread Pat Maddox
got a lot of inactive memory on my machine, around 520MB or so. While doing a portupgrade, the free memory dropped to around 13MB. I'm just curious what exactly the inactive memory is. Will the OS use the inactive memory before dipping into swap? Or is that memory off limits now? If so

Re: Inactive memory

2005-02-08 Thread Chuck Swiger
from inactive, or does it use swap? A process will start reusing inactive memory, which involves flushing data to disk and/or using swap, depending, but the VM system may well swap out pages from other processes instead (especially ones that have been idle for a long time). [ The VM pager uses

Re: Inactive memory

2005-02-08 Thread Pat Maddox
. When a process uses up all the free memory, does it then use some from inactive, or does it use swap? A process will start reusing inactive memory, which involves flushing data to disk and/or using swap, depending, but the VM system may well swap out pages from other processes instead

Re: Inactive memory

2005-02-08 Thread Erik Trulsson
. The difference between the categories is mainly that Inactive and Cached memory still contains data that the system might be able to reuse, while Free memory is completely free and unused. In order to use Cached or Inactive memory it might need to be flushed first, with Inactive probably being dirty

Re: Inactive memory

2005-02-08 Thread Pat Maddox
to reuse, while Free memory is completely free and unused. In order to use Cached or Inactive memory it might need to be flushed first, with Inactive probably being dirty and Cached probably not. (Active memory is almost certainly dirty and is therefore somewhat more expensive to reuse

Re: Inactive memory

2005-02-08 Thread Chuck Swiger
is better, with Wired and Cached being mostly seperate categories. The difference between the categories is mainly that Inactive and Cached memory still contains data that the system might be able to reuse, while Free memory is completely free and unused. In order to use Cached or Inactive memory

Re: Inactive memory

2005-02-08 Thread Erik Trulsson
the categories is mainly that Inactive and Cached memory still contains data that the system might be able to reuse, while Free memory is completely free and unused. In order to use Cached or Inactive memory it might need to be flushed first, with Inactive probably being dirty and Cached probably

Re: Inactive memory

2005-02-08 Thread Chuck Swiger
Erik Trulsson wrote: On Tue, Feb 08, 2005 at 05:55:26PM -0500, Chuck Swiger wrote: Wired memory is typically the kernel text (executable code), any kernel modules which have been loaded, and dynamic kernel memory used for critical structures like the process table, descriptor table, VM page

Out of memory and inactive memory

2004-02-10 Thread Douwe Osinga
Hi, I'm running Zope under FreeBSD 4. Zope keeps getting memory errors, i.e. malloc() fails. But top reports lots of inactive memory available. I'm new to BSD, but I did search around in archives and I think I learned that inactive memory is only kept around in case it is needed again and should

Re: Out of memory and inactive memory

2004-02-10 Thread Uwe Doering
Douwe Osinga wrote: I'm running Zope under FreeBSD 4. Zope keeps getting memory errors, i.e. malloc() fails. But top reports lots of inactive memory available. I'm new to BSD, but I did search around in archives and I think I learned that inactive memory is only kept around in case it is needed

RE: Out of memory and inactive memory

2004-02-10 Thread Douwe Osinga
Do you happen to have a per-process data size limit? What does Hey, thanks, that could be it. It says datasize limit = 130 Mbyte sort of where the process stopped working. Is there a way to change this setting on a global scale? I.e. if I limit datasize unlimited, it seems that only works for

Re: Out of memory and inactive memory

2004-02-10 Thread Uwe Doering
Douwe Osinga wrote: Do you happen to have a per-process data size limit? What does Hey, thanks, that could be it. It says datasize limit = 130 Mbyte sort of where the process stopped working. Is there a way to change this setting on a global scale? I.e. if I limit datasize unlimited, it seems