2

I have SSD and HDD installed on my laptop. Ubuntu 14.10 x64 and all apps installed on SSD. But some apps are reading and/or writing data to/from HDD, so it makes OS freeze sometimes, since my HDD is slower.

How can I inspect those apps and files they are accessing? so that later I could find out why would they behave like that.

Thanks

2 Answers 2

2

You can also use lsof aka "List open files": https://en.wikipedia.org/wiki/Lsof

1

Well, this is not really monitoring, but with this command you can list all running file accesses.

sudo find /proc -type d -name fd -exec sh -c "echo {}: && ls -l {}" \;

check the output if you find the path to your hdd there.

2
  • Thanks. But grepping '/home/me/media' from output of above command didn't return any results. Or it's not the way I should check it?
    – Azamat
    Mar 7, 2015 at 13:16
  • Then there is actually no access to your hdd. You could try this tool for monitoring: github.com/seb-m/pyinotify, you will see file accesses but no process id's.
    – Artisan72
    Mar 7, 2015 at 13:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .