Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jan 2018 11:30:11 +0200
From:      wishmaster <artemrts@ukr.net>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        freebsd-net@freebsd.org, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re[2]: swap_pager_getswapspace(32) Error
Message-ID:  <1515489509.866388124.tjhm60c8@frv52.fwdcdn.com>
In-Reply-To: <5A5480F4.3080404@grosbein.net>
References:  <1515479672.203020608.2hyrh1bv@frv52.fwdcdn.com> <5A5480F4.3080404@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Eugene.

 
 --- Original message ---
 From: "Eugene Grosbein" <eugen@grosbein.net>
 Date: 9 January 2018, 10:45:13
  


> 09.01.2018 14:11, wishmaster wrote:
> 
> > Jan 5 09:49:40 server kernel: swap_pager_getswapspace(32): failed
> > Jan 5 09:49:40 server kernel: swap_pager_getswapspace(24): failed
> > Jan 5 09:49:40 server kernel: swap_pager_getswapspace(18): failed
> 
> [skip]
> 
> This has nothing to do with netgraph, dummynet or ipfw.
   Yes, you right, I think.

> 
> > Without netgraph/dummynet rules I see in top -HSP a lot of processes of MySQL. But innodb_buffer_pool_size is just 2GB. Server has 16GB RAM.
> > 
> > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
> > 
> > 11570 106 20 0 570M 516M select 3 0:38 0.00% clamd{clamd}
> > 11570 106 20 0 570M 516M select 1 0:00 0.00% clamd{clamd}
> > 10612 88 20 0 2909M 451M uwait 3 0:07 0.01% mysqld{mysqld}
> > 10612 88 20 0 2909M 451M uwait 3 0:04 0.01% mysqld{mysqld}
> > .....
> > 
> > uname -a 
> > FreeBSD server 11.1-STABLE FreeBSD 11.1-STABLE #0 r325503: Tue Nov 7 13:38:44 EET 2017 wishmaster@servers:/usr/obj/usr/src/sys/MY amd64
> 
> Have you configured any swap partitions for the server?

 This problematic server has two HDD in mirror. Swap is about 32GB and located on each HDD. 
 The second almost identical server has only one HDD.

>From dmesg: 

avail memory = 16527147008 (15761 MB)
GEOM_MIRROR: Device mirror/swap launched (2/2).

# zpool status
  pool: my_zroot
 state: ONLINE
  scan: resilvered 2,19M in 0h0m with 0 errors on Wed May 17 13:14:09 2017
config:

        NAME        STATE     READ WRITE CKSUM
        my_zroot    ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            ada1p4  ONLINE       0     0     0
            ada0p4  ONLINE       0     0     0

errors: No known data errors

# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/mirror/swap  33554428        0 33554428     0%

The Capacity parameter of swapinfo is <= 2...3% even though swap_pager_getswapspace(32) is occurred.

--
Vitaliy




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