Whats best way to check diskspace each vm is using in qubes

542 views
Skip to first unread message

raah...@gmail.com

unread,
Sep 11, 2015, 1:04:15 AM9/11/15
to qubes-users
is there a better way then using df command in each vm terminal? Would be nice to be able to eyeball the size of all vm's in a list. dom0 gives me the total size but i can't figure out how to see what each vm is specifically using in total.


Also i was wondering if my firefox/html5 issue might be because of small space in /tmp. When watching a long video in firefox the video will constantly stop and i have to refresh the page a couple times and skip to where it left off. quite annoying and i've had to resort to downloading the videos to watch them.

Thanks

Rich.

Marek Marczykowski-Górecki

unread,
Sep 11, 2015, 2:02:30 AM9/11/15
to raah...@gmail.com, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, Sep 10, 2015 at 10:04:15PM -0700, raah...@gmail.com wrote:
> is there a better way then using df command in each vm terminal? Would be nice to be able to eyeball the size of all vm's in a list. dom0 gives me the total size but i can't figure out how to see what each vm is specifically using in total.

Check `qvm-ls -d`. There is "priv-curr" and "priv-max" column. It will
not be exactly used space in /rw filesystem, but pretty good
approximation.

> Also i was wondering if my firefox/html5 issue might be because of small space in /tmp. When watching a long video in firefox the video will constantly stop and i have to refresh the page a couple times and skip to where it left off. quite annoying and i've had to resort to downloading the videos to watch them.

This may be the case, same as in chrome[1]. You can make more space
there by remounting tmp:
sudo mount /tmp -o remount,size=512M

[1] https://github.com/QubesOS/qubes-issues/issues/1003

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJV8m5rAAoJENuP0xzK19csbBQH/2RIruaQkLYsBJC8L+jYnISp
qMmkqLOEzbBTP1Hml7DeVVBmhpaNNqieGIWMeqgFIbMo/tsrpuYPiqhweLb0cPiY
XRvibEeWKhNestooBdzhAtqZF/s900BHJS2ERlTg7AY3prWhqndbLsuKa5KOxh2V
zyTZ+4MCTSxNXUnR+z7/WX1nNfkdgMjyXGrFbUxJngOUqwWmFKhApWUd7o2tArdL
Qu77zhaQTQeTAk5QVE9IJuHbPInzUoYZWhMXsarCTIHnfPigzCBdfWTh25Uowqr4
0qHYXtYSpYMBgQJN1XDnicBHbUYHO/OBBonPbb2KwDF/DLoP8jZox711hZMUE1c=
=gqs1
-----END PGP SIGNATURE-----

JPL

unread,
Sep 11, 2015, 5:57:47 AM9/11/15
to qubes-users, raah...@gmail.com

I am having a problem updating a Fedora-based templateVM. The VM starts (green icon) then fails. The log says it has run out of memory.  qvm-ls -d gives me:
Priv-max=20480MB Root-curr = 7769 MB Root-max = 10240MB State-on-disk = 9510 MB Priv-curr 608 MB

Qubes 3 is installed on a USB3 device.

Is there any way I can increase memory allocation? I have already increased the private storage capacity but that didn't seem to help.

raah...@gmail.com

unread,
Sep 11, 2015, 11:37:49 PM9/11/15
to qubes-users, raah...@gmail.com
tks man! just what i was looking for! i notice a disk column too? THough none of them see to add up to what df shows me from dom0, for the /dev/mapper/qubes_dom0-root

And yes increasing /tmp fixed the issue ty once again!! I was wondering, i actually made it 1024M is that too big, could that be a security risk? you're the best Marek!!

raah...@gmail.com

unread,
Sep 13, 2015, 11:32:49 PM9/13/15
to qubes-users, raah...@gmail.com
ah ok so apparently i have to issue that command everytime i start the vm if i need it.

cprise

unread,
Sep 13, 2015, 11:51:09 PM9/13/15
to raah...@gmail.com, qubes-users
You could also turn on View/Size in the VM Manager. That will show
root+private size for each vm.

raah...@gmail.com

unread,
Sep 14, 2015, 12:45:11 PM9/14/15
to qubes-users, raah...@gmail.com
tks for tip that would help to monitor for changes. But I also was curious what added up to the 21gb used when doing df command in dom0.

raah...@gmail.com

unread,
Sep 14, 2015, 12:50:02 PM9/14/15
to qubes-users, raah...@gmail.com
so when I add everythign up in disk columng after doing qvm-ls -d it adds up to about 16.5gb so I guess i should just assume that dom0 is about 5gb.

Qubed One

unread,
Sep 15, 2015, 2:48:22 PM9/15/15
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
>> tks man! just what i was looking for! i notice a disk column
>> too? THough none of them see to add up to what df shows me from
>> dom0, for the /dev/mapper/qubes_dom0-root
>>
>> And yes increasing /tmp fixed the issue ty once again!! I was
>> wondering, i actually made it 1024M is that too big, could that
>> be a security risk? you're the best Marek!!
>
> ah ok so apparently i have to issue that command everytime i start
> the vm if i need it.
>


You could do that. You could also make it permanent in the template by
adding the following to /etc/fstab (adjust size as needed):

tmpfs /tmp tmpfs nodev,nosuid,size=1G 0 0


...and you could also put the original remount command in
/rw/config/rc.local (and make rc.local +x) to make it permanent only
for that app-vm.
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJV+GftXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2N0FGNkY4NTIxMzYxNjI1REE1MjY1QTcw
MUNBRjYzOTFBQkM0OTgzAAoJEAHK9jkavEmDR8oP/iBnJanEX7MjoT8G942T+G7m
yYR/dIWdC7Hd735yEPMjsB2gtZjBIITMX+kFNuDIxZuRZ5VgDcnbmWcgmyw+CbxD
QTqU1n0lTamesftdqEk6p/hIWEGIqFvSNKORkADsznoKNaUyP720X50zzTxPo3+g
Sp7s/n1AVCxXnC2x+mgm/SpbyRpFSWieqVR9o64CxsCuPahBMx+giSsuOrSPI7Er
KR2ZxlIpqtsg0d3EgN/DuHcaphKiPUR1ofp05HPXUqG6Shh4lBSjyL8l5P+wddmv
m62kV7KTKf4JsPyBfsZAL0UhC45DFKMw7eXfrxGTY8oMUtDX9qClAssR9+lXUuC/
l7McvRYUptxtoxqMNYMY2VV6VJG6EPeF8QWmwIELIHRJ80+cCqJPQxWuM9olH6+1
1N5ePW5XGMtsQnSiQ8hNtgW1I0csqzlpA19QXZNJZWA95crR08W2Q/Z6E3q0zvF0
rmAo2SkMN8iAnKuyjYZMPJMNLNnPFpTlwDpt1WmEYYeePJnBaifMoxYbzNhOS94P
WOuT7mSoKQ8VmMxX1i/xsNODUq6nUlKWi+aQXl0Q+whfk3gR3tHrcj2wJdt4/81d
GSCdO4OUvb6k+QnDG0DOpuPpWcxzN3oM3hUpcp1U7z/RCIPIeOM4d7I/up5A/gaD
F7jUovG/pjozYtkmT0Ho
=2c12
-----END PGP SIGNATURE-----

raah...@gmail.com

unread,
Sep 15, 2015, 3:03:16 PM9/15/15
to qubes-users, qube...@riseup.net
thanks!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages