<div xmlns="http://www.w3.org/1999/xhtml">Hello all list readers, newbies and experts !</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">I would like to measure CPU consumption  and Disk read latency for a single application.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">I know I can use CPU affinity to bind application to a CPU, but I am not sure if it is exclusive for other processes.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Of cause the simplest way which comes to my mind  is to send SIGPAUSE to all processes,  except mine.</div><div xmlns="http://www.w3.org/1999/xhtml">But I think that many system processeds including systemd will just ignore it. and so new processes might be forked while kill works.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">The more fancy way might be  to use freezer cgroup, but I am just speculating because  I know the concept only.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">And the question of measuring IO. Since application read file in filesystem. there might be other filesystem's users (lets disregard kernel fs code, since  i believe it is very efficient and works with small objects like dentries (which are RAM)  and inodes.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">But other applications might read/write to this file system until I have a means to pause them.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Please advise.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">Regards,</div><div xmlns="http://www.w3.org/1999/xhtml">Lev</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div>