Re: Calculating private and shared memory for processes

2023-02-13 Thread Jeffrey Walton
On Fri, Feb 10, 2023 at 5:43 PM Rahul Gore (Nokia) wrote: > > I’m trying to find private and shared memory usage of each process in Linux. > ... Application should _not_ share memory across processes. That's a security vulnerability. One app could corrupt memory, and cause unpredictable results

Calculating private and shared memory for processes

2023-02-13 Thread Rahul Gore (Nokia)
and shared memory for processes Hi, I'm trying to find private and shared memory usage of each process in Linux. One answer on Stack Overflow suggested using 'smem' utility (it reads /proc//smap). However, the sum of all PSS values in 'smem' output is not equal to Used value of the 'free' utility

Calculating private and shared memory for processes

2023-02-10 Thread Rahul Gore (Nokia)
Hi, I'm trying to find private and shared memory usage of each process in Linux. One answer on Stack Overflow suggested using 'smem' utility (it reads /proc//smap). However, the sum of all PSS values in 'smem' output is not equal to Used value of the 'free' utility (it reads /proc/meminfo).