Project

General

Profile

Bug #7238

zvol_swap/setup fails due to memory usage

Added by Daniel Kimmel about 3 years ago. Updated about 3 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

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.

History

#1

Updated by Daniel Kimmel about 3 years ago

Because of additional failures from zvol_swap/setup even after the original change, we've decided to disable this suite entirely until we are able to dedicate resources to solving the full issue.

#2

Updated by Electric Monk about 3 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 05e61955a0df3b1f5fea8afab6b41bcb054f00f4

commit  05e61955a0df3b1f5fea8afab6b41bcb054f00f4
Author: John Wren Kennedy <john.kennedy@delphix.com>
Date:   2016-09-07T03:19:09.000Z

    7238 zvol_swap/setup fails due to memory usage
    Reviewed by: Prakash Surya <prakash.surya@delphix.com>
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Will Guyette <will.guyette@delphix.com>
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF