The "vmadm get" command aborts after 9 minutes with "zfs exited
prematurely with code: 1"
[root@bynaus ~]# vmadm list
UUID TYPE RAM STATE ALIAS
898c10b6-cbd7-4ed8-8796-df1248ff42ce OS 2048 running ledonia
[root@bynaus ~]# date; vmadm get 898c10b6-cbd7-4ed8-8796-df1248ff42ce; date
January 11, 2017 10:20:12 PM UTC
zfs exited prematurely with code: 1
January 11, 2017 10:29:16 PM UTC
With ps I can find one child process:
root 27007 27003 23 22:40:57 pts/4 7:49 /usr/sbin/zfs list
-H -p -t filesystem,snapshot,volume -o compression,creation,
root 27003 26329 0 22:40:56 pts/4 0:00 /usr/node/bin/node
--abort_on_uncaught_exception /usr/sbin/vmadm get 898c10b6-c
Strangely, I can run this command within a second:
[root@bynaus ~]# date; /usr/sbin/zfs list -H -p -t filesystem -o
compression -r zones/ch.kzone/ledonia >/dev/null; date
January 11, 2017 10:50:25 PM UTC
January 11, 2017 10:50:25 PM UTC
The same command, spawned from "vmadm get" runs 8 minutes, is CPU
bound and consumes 4 GB of RAM.
[root@bynaus ~]# /usr/ucb/ps auxww
USER PID %CPU %MEM SZ RSS TT S START TIME COMMAND
root 27007 23.9 24.1 4036328 4033528 pts/4 O 22:40:56 8:38
/usr/sbin/zfs list -H -p -t filesystem -o compression -r
zones/ch.kzone/ledonia
The system has 901147 snapshots over 106 filesystems and only 16 GB of RAM.
I assume ZFS should easily be able to handle 900'000 snapshots?
Maybe 16 GB RAM is a bit low for that? (Is there a recommendation for
a "zfs recv" backup system doing nothing but collecting snapshots?)
Is that a bug with "vmadm get"? I don't see why the same "zfs list"
takes 8 minutes and fails, when the same command, run from the shell,
finishes within a second.
(Rebooting the global zone did not help.)
Sven
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com