Some more testing indicates that the problem is most likely in close, not mmap.
I modified the program to the following:
zool# more test.c
#include
#include
#include
#include
#include
#include
int main (int argc, char *argv[])
{
int rc, pid, fd;
char *cp;
char cmd[10
> On 30 July 2015, at 01:39, Doug Hardie wrote:
>
>
>> On 29 July 2015, at 23:44, Peter Jeremy wrote:
>>
>> [reformatted]
>>
>> On 2015-Jul-29 17:41:33 -0700, Doug Hardie wrote:
>>> I have several FreeBSD 9.3 systems that are using swap and I can’t
>>> figure out what is doing it. The key
> On 29 July 2015, at 23:44, Peter Jeremy wrote:
>
> [reformatted]
>
> On 2015-Jul-29 17:41:33 -0700, Doug Hardie wrote:
>> I have several FreeBSD 9.3 systems that are using swap and I can’t
>> figure out what is doing it. The key system has 6GB swap and
>> currently it has over 2GB in use.
>
[reformatted]
On 2015-Jul-29 17:41:33 -0700, Doug Hardie wrote:
>I have several FreeBSD 9.3 systems that are using swap and I can’t
>figure out what is doing it. The key system has 6GB swap and
>currently it has over 2GB in use.
Is the system currently paging (top(1) and "systat -v" will show
t
> On 29 July 2015, at 17:41, Doug Hardie wrote:
>
> I have several FreeBSD 9.3 systems that are using swap and I can’t figure out
> what is doing it. The key system has 6GB swap and currently it has over 2GB
> in use. ps shows only a kernel module [intr] with a W status. Obviously
> that i
n are file backed and thus
>> shouldn’t use swap. How do I figure out what that swap space is being used
>> for?
> Maybe top(1)?
> top -P
> for example. At least you could see who's chewing all your memory. Which
> should be a good clue as to who's responsible for swa
e is being used
> for?
Maybe top(1)?
top -P
for example. At least you could see who's chewing all your memory. Which
should be a good clue as to who's responsible for swap usage.
--Chris
>
>
> ___
> freebsd-stable@freebsd.org m
I have several FreeBSD 9.3 systems that are using swap and I can’t figure out
what is doing it. The key system has 6GB swap and currently it has over 2GB in
use. ps shows only a kernel module [intr] with a W status. Obviously that
isn’t using the space. No other process shows a W in its stat
s
real memory = 1073152000 (1023 MB)
avail memory = 1045057536 (996 MB)
MPTable:
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
After upgrade swap usage increased dramaticly - from 5% on 5.4 to 20%-70% on
6.0. Small investigation showed me that apache i