Project

General

Profile

Actions

Bug #7238

closed

zvol_swap/setup fails due to memory usage

Added by Daniel Kimmel almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2016-07-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

zvol/zvol_swap/setup can fail because too much memory is used:

NOTE: Executing: swap -d /dev/zvol/dsk/rpool/swap
NOTE: Executing: swap -d /dev/zvol/dsk/rpool/swap1
Unable to delete swap device /dev/zvol/dsk/rpool/swap1 because of insufficient RAM

State of the system:

$ swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 65,2 8 4194296 4194296
$ swap -s
total: 812132k bytes allocated + 30316k reserved = 842448k used, 2049048k available
$ sudo swap -d /dev/zvol/dsk/rpool/swap
/dev/zvol/dsk/rpool/swap: Not enough space

To reduce memory usage, I did (in order of decreasing utility):

$ sudo pkill fmd
(fmd will be restarted but with less memory usage – 400MB vs ~30MB)
$ sudo svcadm disable postgres
$ sudo svcadm disable misc
$ sudo svcadm disable stmf-logging

After this I see:

$ swap -s
total: 385356k bytes allocated + 30088k reserved = 415444k used, 2657196k available

And am then able to delete the swap device:

$ sudo swap -d /dev/zvol/dsk/rpool/swap

Would recommend changing the setup to restart fmd from zvol_swap/setup.

Actions

Also available in: Atom PDF