Re: [PATCH] mm: fix the inaccurate memory statistics issue for users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/4/25 16:16, Baolin Wang wrote:
>>>
>>> # Get the PIDs of stress-ng processes
>>> PIDS=$(pgrep stress-ng)
>>>
>>> # Loop through each PID and monitor /proc/[pid]/status
>>> for PID in $PIDS; do
>>>       while true; do
>>>           cat /proc/$PID/status
>>> 	usleep 100000
>> 
>> Hm but this limits the reading to 10 per second? If we want to simulate an
>> adversary process, it should be without the sleeps I think?
> 
> OK. I drop the usleep, and I still can not see obvious impact.

Thanks, that's reassuring.

> w/o patch:
> stress-ng: info:  [6848]          4,399,219,085,152 CPU Cycles 
>           67.327 B/sec
> stress-ng: info:  [6848]          1,616,524,844,832 Instructions 
>           24.740 B/sec (0.367 instr. per cycle)
> stress-ng: info:  [6848]                 39,529,792 Page Faults Total 
>            0.605 M/sec
> stress-ng: info:  [6848]                 39,529,792 Page Faults Minor 
>            0.605 M/sec
> 
> w/patch:
> stress-ng: info:  [2485]          4,462,440,381,856 CPU Cycles 
>           68.382 B/sec
> stress-ng: info:  [2485]          1,615,101,503,296 Instructions 
>           24.750 B/sec (0.362 instr. per cycle)
> stress-ng: info:  [2485]                 39,439,232 Page Faults Total 
>            0.604 M/sec
> stress-ng: info:  [2485]                 39,439,232 Page Faults Minor 
>            0.604 M/sec





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux