On 10/09/2020 14:17, Hamish McIntyre-Bhatty wrote: <cut>
NB: On desktop I seem to have a very high number for "SUnreclaim" in /proc/meminfo: MemTotal: 32812004 kB MemFree: 8619976 kB MemAvailable: 9572924 kB Buffers: 61772 kB Cached: 1061212 kB SwapCached: 1190212 kB Active: 1939416 kB Inactive: 2347324 kB Active(anon): 1737708 kB Inactive(anon): 1529860 kB Active(file): 201708 kB Inactive(file): 817464 kB Unevictable: 796 kB Mlocked: 796 kB SwapTotal: 40943612 kB SwapFree: 38034764 kB Dirty: 412 kB Writeback: 0 kB AnonPages: 2246440 kB Mapped: 582964 kB Shmem: 105964 kB KReclaimable: 397472 kB Slab: 16832040 kB SReclaimable: 397472 kB SUnreclaim: 16434568 kB KernelStack: 28720 kB PageTables: 51072 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 57349612 kB Committed_AS: 15170832 kB VmallocTotal: 34359738367 kB VmallocUsed: 2688132 kB VmallocChunk: 0 kB Percpu: 26112 kB HardwareCorrupted: 0 kB AnonHugePages: 0 kB ShmemHugePages: 0 kB ShmemPmdMapped: 0 kB FileHugePages: 0 kB FilePmdMapped: 0 kB CmaTotal: 0 kB CmaFree: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB Hugetlb: 0 kB DirectMap4k: 21204456 kB DirectMap2M: 12279808 kB DirectMap1G: 1048576 kB This isn't the same on the NAS box, but either way there are two problems to debug here and I guess they could be related. I can force the desktop to swap by using a script to allocate more than it calls "free" memory, so it's definitely not cache. The NAS box, on the other hand, seems to magic up free RAM to some extent and then eventually swaps. What does SUnreclaimable mean? Do I have a kernel memory leak? "Active" is at about 2 GB (which is roughly what I'd expect). Hamish
signature.asc
Description: OpenPGP digital signature
-- Next meeting: Online, Jitsi, Tuesday, 2020-10-06 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk New thread, don't hijack: mailto:dorset@mailman.lug.org.uk