lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 15 Mar 2019 07:30:16 +0100
From:   Adam Romanek <romanek.adam@...il.com>
To:     linux-kernel@...r.kernel.org
Subject: tmpfs - what portion of a tmpfs partition is swapped out

Hi,

I have an embedded platform running Linux 3.12.x with rootfs
uncompressed to RAM and using a tmpfs partition. I also use ZRAM on this
platform, so I expect parts of the root filesystem to get swapped out
over time. I'm struggling with poor performance which I believe is
somehow related to swapping. I'm able to measure the number of pages
swapped in and out, I'm also able to measure the amount of swapped
memory for user-space processes (thanks to Android's procrank tool).

Now in order to fully understand what happens within the system I'd like
to measure what portion of the root filesystem is swapped to ZRAM.

I found that include/linux/shmem_fs.h contains 'struct shmem_inode_info'
which on the other hand contains 'swapped' field. If I'm correct then
iterating over all inodes from the root filesystem and summing up the
values of this field should provide me with the result. Is that correct?

I'm not a regular Linux kernel developer so any help on implementing
this would be appreciated.

Best regards,
Adam Romanek

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ