Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #167985 > unrolled thread

RANT: Virtual filesystems are getting out of control

Started byJ Mo <jmomo@jmomo.net>
First post2016-05-18 02:30 +0200
Last post2016-05-20 22:30 +0200
Articles 7 — 7 participants

Back to article view | Back to linux.debian.user


Contents

  RANT: Virtual filesystems are getting out of control J Mo <jmomo@jmomo.net> - 2016-05-18 02:30 +0200
    Re: RANT: Virtual filesystems are getting out of control David Wright <deblis@lionunicorn.co.uk> - 2016-05-18 07:00 +0200
      Re: RANT: Virtual filesystems are getting out of control Håkon Alstadheim <hakon@alstadheim.priv.no> - 2016-05-18 09:10 +0200
        Re: RANT: Virtual filesystems are getting out of control Lisi Reisz <lisi.reisz@gmail.com> - 2016-05-18 13:10 +0200
        Re: RANT: Virtual filesystems are getting out of control Cousin Stanley <cousinstanley@gmail.com> - 2016-05-20 00:10 +0200
    Re: RANT: Virtual filesystems are getting out of control Albin Otterhaell <gmane@otterhall.com> - 2016-05-20 00:30 +0200
      Re: RANT: Virtual filesystems are getting out of control Jochen Spieker <ml@well-adjusted.de> - 2016-05-20 22:30 +0200

#167985 — RANT: Virtual filesystems are getting out of control

FromJ Mo <jmomo@jmomo.net>
Date2016-05-18 02:30 +0200
SubjectRANT: Virtual filesystems are getting out of control
Message-ID<rzXx7-38V-15@gated-at.bofh.it>
Pardon my rant. Feel free to disregard this thread.

The output from these commands are on a freshly installed system.



-->df
Filesystem           1K-blocks       Used  Available Use% Mounted on
udev                  16441312          0   16441312   0% /dev
tmpfs                  3290364       9668    3280696   1% /run
/dev/sda2            114287812   44945248   63514008  42% /
tmpfs                 16451804        208   16451596   1% /dev/shm
tmpfs                     5120          4       5116   1% /run/lock
tmpfs                 16451804          0   16451804   0% /sys/fs/cgroup
tmpfs                  3290364          0    3290364   0% /run/user/116
tmpfs                  3290364         12    3290352   1% /run/user/1000

One out of eight lines are actually disk filesystems. That is 88% 
garbage I didn't want to see.



-->mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs 
(rw,nosuid,relatime,size=16441312k,nr_inodes=4110328,mode=755)
devpts on /dev/pts type devpts 
(rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=3290364k,mode=755)
/dev/sda2 on / type ext4 
(rw,noatime,quota,usrquota,grpquota,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs 
(rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup 
(rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup 
(rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/perf_event type cgroup 
(rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup 
(rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup 
(rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup 
(rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup 
(rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup 
(rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/freezer type cgroup 
(rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs 
(rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/116 type tmpfs 
(rw,nosuid,nodev,relatime,size=3290364k,mode=700,uid=116,gid=120)
tmpfs on /run/user/1000 type tmpfs 
(rw,nosuid,nodev,relatime,size=3290364k,mode=700,uid=1000,gid=1000)


1 line out out 27. That's 96% garbage I didn't want to see.

[toc] | [next] | [standalone]


#167990

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2016-05-18 07:00 +0200
Message-ID<rA1Ku-5M9-3@gated-at.bofh.it>
In reply to#167985
On Tue 17 May 2016 at 17:18:03 (-0700), J Mo wrote:
> The output from these commands are on a freshly installed system.
> 
> -->df
> Filesystem           1K-blocks       Used  Available Use% Mounted on
> udev                  16441312          0   16441312   0% /dev
> tmpfs                  3290364       9668    3280696   1% /run
> /dev/sda2            114287812   44945248   63514008  42% /
> tmpfs                 16451804        208   16451596   1% /dev/shm
> tmpfs                     5120          4       5116   1% /run/lock
> tmpfs                 16451804          0   16451804   0% /sys/fs/cgroup
> tmpfs                  3290364          0    3290364   0% /run/user/116
> tmpfs                  3290364         12    3290352   1% /run/user/1000
> 
> One out of eight lines are actually disk filesystems. That is 88%
> garbage I didn't want to see.

$ df -t ext3 -t ext4

> -->mount
> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
> proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
> udev on /dev type devtmpfs
> (rw,nosuid,relatime,size=16441312k,nr_inodes=4110328,mode=755)
> devpts on /dev/pts type devpts
> (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=3290364k,mode=755)
> /dev/sda2 on / type ext4
> (rw,noatime,quota,usrquota,grpquota,errors=remount-ro,data=ordered)
> securityfs on /sys/kernel/security type securityfs
> (rw,nosuid,nodev,noexec,relatime)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
> tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
> cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
> pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
> cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
> cgroup on /sys/fs/cgroup/perf_event type cgroup
> (rw,nosuid,nodev,noexec,relatime,perf_event)
> cgroup on /sys/fs/cgroup/devices type cgroup
> (rw,nosuid,nodev,noexec,relatime,devices)
> cgroup on /sys/fs/cgroup/cpuset type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpuset)
> cgroup on /sys/fs/cgroup/pids type cgroup
> (rw,nosuid,nodev,noexec,relatime,pids)
> cgroup on /sys/fs/cgroup/blkio type cgroup
> (rw,nosuid,nodev,noexec,relatime,blkio)
> cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup
> (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
> cgroup on /sys/fs/cgroup/freezer type cgroup
> (rw,nosuid,nodev,noexec,relatime,freezer)
> systemd-1 on /proc/sys/fs/binfmt_misc type autofs
> (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
> hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
> mqueue on /dev/mqueue type mqueue (rw,relatime)
> debugfs on /sys/kernel/debug type debugfs (rw,relatime)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
> tmpfs on /run/user/116 type tmpfs
> (rw,nosuid,nodev,relatime,size=3290364k,mode=700,uid=116,gid=120)
> tmpfs on /run/user/1000 type tmpfs
> (rw,nosuid,nodev,relatime,size=3290364k,mode=700,uid=1000,gid=1000)
> 
> 1 line out out 27. That's 96% garbage I didn't want to see.

$ mount -t ext3 ; mount -t ext4

$ man bash   for info on aliases and shell functions.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#167991

FromHåkon Alstadheim <hakon@alstadheim.priv.no>
Date2016-05-18 09:10 +0200
Message-ID<rA3Md-7f3-3@gated-at.bofh.it>
In reply to#167990
Den 18. mai 2016 06:51, skrev David Wright:
> $ mount -t ext3 ; mount -t ext4
Or, to get only real devices listed: mount | grep '^/' .
Frees you from knowing fstype.
>
> $ man bash   for info on aliases and shell functions.
>
> Cheers,
> David.
>
>
alias drives="mount | grep '^/'"

[toc] | [prev] | [next] | [standalone]


#168001

FromLisi Reisz <lisi.reisz@gmail.com>
Date2016-05-18 13:10 +0200
Message-ID<rA7wt-1ja-11@gated-at.bofh.it>
In reply to#167991
On Wednesday 18 May 2016 07:52:03 Håkon Alstadheim wrote:
> Den 18. mai 2016 06:51, skrev David Wright:
> > $ mount -t ext3 ; mount -t ext4
>
> Or, to get only real devices listed: mount | grep '^/' .
> Frees you from knowing fstype.
>
> > $ man bash   for info on aliases and shell functions.
> >
> > Cheers,
> > David.
>
> alias drives="mount | grep '^/'"

Thank you, Håkon.  That is absolutely brilliant!!!

Lisi

[toc] | [prev] | [next] | [standalone]


#168086

FromCousin Stanley <cousinstanley@gmail.com>
Date2016-05-20 00:10 +0200
Message-ID<rAEiJ-5Dp-1@gated-at.bofh.it>
In reply to#167991
Håkon Alstadheim wrote:

> alias drives="mount | grep '^/'"

  Another alternative .... 

  alias drives='df -h -T -x tmpfs -x devtmpfs'


  sk@d3s  02:44 PM  ~
  $ drives

  Filesystem                Type  Size  Used Avail Use% Mounted on
  /dev/sda1                 ext4   31G  6.9G   23G  24% /
  192.168.0.10:/mnt/sda/a14 nfs4   60G   30G   28G  52% /home/sk/Videos
  192.168.0.10:/mnt/sda/a12 nfs4   30G   16G   14G  54% /home/sk/adirs


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona

[toc] | [prev] | [next] | [standalone]


#168087

FromAlbin Otterhaell <gmane@otterhall.com>
Date2016-05-20 00:30 +0200
Message-ID<rAEC6-5K2-21@gated-at.bofh.it>
In reply to#167985
J Mo:
> -->df
> Filesystem           1K-blocks       Used  Available Use% Mounted on
> udev                  16441312          0   16441312   0% /dev
> tmpfs                  3290364       9668    3280696   1% /run
> /dev/sda2            114287812   44945248   63514008  42% /
> tmpfs                 16451804        208   16451596   1% /dev/shm
> tmpfs                     5120          4       5116   1% /run/lock
> tmpfs                 16451804          0   16451804   0% /sys/fs/cgroup
> tmpfs                  3290364          0    3290364   0% /run/user/116
> tmpfs                  3290364         12    3290352   1% /run/user/1000
> 
> One out of eight lines are actually disk filesystems. That is 88%
> garbage I didn't want to see.

I don't know if this is that you seek, but

$ lsblk

should be clean and structured.

[toc] | [prev] | [next] | [standalone]


#168106

FromJochen Spieker <ml@well-adjusted.de>
Date2016-05-20 22:30 +0200
Message-ID<rAZdw-1Ze-3@gated-at.bofh.it>
In reply to#168087

[Multipart message — attachments visible in raw view] — view raw

Albin Otterhaell:
> 
> $ lsblk
> 
> should be clean and structured.

Nice! How didn't I know about that? It helps especially with complex
device structures involving LVM and LUKS.

J.
-- 
When I am at nightclubs I enjoy looking at other people and assessing
their imagined problems.
[Agree]   [Disagree]
                 <http://archive.slowlydownward.com/NODATA/data_enter2.html>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web