Script for automated testing of computer latency.

More
6 years 2 weeks ago - 6 years 2 weeks ago #186258 by seuchato
BB (or however else :) )
can you kindly also post the result of this:

Code:
lsblk -b -o MOUNTPOINT,FSAVAIL -x FSAVAIL | grep "/" | awk '!seen[$0]++' | sort -r -n -k2 | sed -n 1p

Tia
chris
Last edit: 6 years 2 weeks ago by seuchato.

Please Log in or Create an account to join the conversation.

  • BeagleBrainz
  • Visitor
  • Visitor
6 years 2 weeks ago #186260 by BeagleBrainz
Replied by BeagleBrainz on topic Script for automated testing of computer latency.
Code:
rmurphy@thinkPad-t530:~$ lsblk --version lsblk from util-linux 2.31.1 rmurphy@thinkPad-t530:~$
Code:
rmurphy@thinkPad-t530:~$ lsblk -b -o MOUNTPOINT,FSAVAIL -x FSAVAIL | grep "/" | awk '!seen[$0]++' | sort -r -n -k2 | sed -n 1p lsblk: unknown column: FSAVAIL Try 'lsblk --help' for more information. rmurphy@thinkPad-t530:~$
Code:
rmurphy@thinkPad-t530:~$ lsblk -b -o MOUNTPOINT,FSTYPE -x FSTYPE | grep "/" | awk '!seen[$0]++' | sort -r -n -k2 | sed -n 1p / ext4 rmurphy@thinkPad-t530:~$

Please Log in or Create an account to join the conversation.

More
6 years 2 weeks ago #186263 by seuchato
Arrrgh!
Code:
lsblk --version lsblk from util-linux 2.33.1
Got the problem now. I develop on OpenSuse, then test on debian LnixCNC iso.
Thanks a ton, need to find another way to determine which local disc has most free space.

Greez
chris

Please Log in or Create an account to join the conversation.

  • BeagleBrainz
  • Visitor
  • Visitor
6 years 2 weeks ago - 6 years 2 weeks ago #186264 by BeagleBrainz
Replied by BeagleBrainz on topic Script for automated testing of computer latency.
Code:
df -l -x tmpfs | grep -v udev
Code:
df (GNU coreutils) 8.28
Last edit: 6 years 2 weeks ago by BeagleBrainz.

Please Log in or Create an account to join the conversation.

  • tommylight
  • Away
  • Moderator
  • Moderator
More
6 years 2 weeks ago #186269 by tommylight
Replied by tommylight on topic Script for automated testing of computer latency.
Separate home:
cnc@SSD240HIK:~$ mount | grep -Ei "on /home"
/dev/sda2 on /home type ext4 (rw,relatime,data=ordered)
cnc@SSD240HIK:~$
cnc@SSD240HIK:~$ lsblk -b -o MOUNTPOINT,FSAVAIL -x FSAVAIL | grep "/" | awk '!seen[$0]++' | sort -r -n -k2 | sed -n 1p
/home 143709351936
cnc@SSD240HIK:~$
The following user(s) said Thank You: seuchato

Please Log in or Create an account to join the conversation.

More
6 years 2 weeks ago - 6 years 2 weeks ago #186297 by seuchato
BB, tommy and who else might be interested:

Code:
df -l -x tmpfs | grep -v udev | sort -r -n -k4 | sed -n 1p

Sample output of an OpenSuse PC:

Code:
df -l -x tmpfs | grep -v udev Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 1947284 8 1947276 1% /dev /dev/sda2 69905408 6411708 62747300 10% / /dev/sda2 69905408 6411708 62747300 10% /tmp /dev/sda2 69905408 6411708 62747300 10% /srv /dev/sda2 69905408 6411708 62747300 10% /opt /dev/sda2 69905408 6411708 62747300 10% /boot/grub2/i386-pc /dev/sda2 69905408 6411708 62747300 10% /.snapshots /dev/sda2 69905408 6411708 62747300 10% /usr/local /dev/sda2 69905408 6411708 62747300 10% /boot/grub2/x86_64-efi /dev/sda2 69905408 6411708 62747300 10% /var /dev/sda2 69905408 6411708 62747300 10% /root /dev/sda6 108299608 331460 107968148 1% /home localhost:~ # df -l -x tmpfs | grep -v udev | sort -r -n -k4 /dev/sda6 108299608 331420 107968188 1% /home /dev/sda2 69905408 6411728 62747296 10% /var /dev/sda2 69905408 6411728 62747296 10% /usr/local /dev/sda2 69905408 6411728 62747296 10% /tmp /dev/sda2 69905408 6411728 62747296 10% /srv /dev/sda2 69905408 6411728 62747296 10% /root /dev/sda2 69905408 6411728 62747296 10% /opt /dev/sda2 69905408 6411728 62747296 10% /boot/grub2/x86_64-efi /dev/sda2 69905408 6411728 62747296 10% /boot/grub2/i386-pc /dev/sda2 69905408 6411728 62747296 10% /.snapshots /dev/sda2 69905408 6411728 62747296 10% / devtmpfs 1947284 8 1947276 1% /dev Filesystem 1K-blocks Used Available Use% Mounted on localhost:~ # df -l -x tmpfs | grep -v udev | sort -r -n -k4 | sed -n 1p /dev/sda6 108299608 331420 107968188 1% /home

This should return the block device that has most free space. Can you confirm this?

Greez
chris
Last edit: 6 years 2 weeks ago by seuchato. Reason: added sample output

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds
Powered by Kunena Forum