[PATCH 0/2] cyclictest: fix growing shm stat file

Lukas Beckmann <[email protected]>
Newsgroups org.kernel.vger.linux-rt-users
Message-ID <[email protected]>
I recently started using cyclictests with get_cyclictest_snapshot and
noticed that the shm stat files grows indefinitely.

Example:
for i in {1..10}; do
  killall -USR2 cyclictest
  sleep 0.01
  ls -lh /dev/shm/cyclictest* | awk '{print "Size: " $5}'
done
Size: 1,4K
Size: 2,8K
Size: 4,1K
Size: 5,5K
Size: 6,8K
Size: 8,2K
Size: 9,5K
Size: 11K
Size: 13K
Size: 14K
   
Signed-off-by: Lukas Beckmann <[email protected]>

Lukas Beckmann (2):
  cyclictest: fix growing shm stat file
  cyclictest: simplify rstat_setup

 src/cyclictest/cyclictest.c | 90 ++++++-------------------------------
 1 file changed, 14 insertions(+), 76 deletions(-)

-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.