How can I get iostats io throughput of just a process to try know if this process starts burning my HDD.
Thanks!
Assuming a recent version of Linux, I'd look at the iotop utility.
You don't mention your distribution of Linux, but the tool is available for most in the default package repositories.
Some useful tools:
... and if you ever need to see per-process network usage, try nethogs
.
You can get the I/O data from /proc/[pid]/io file (or simply /proc/self/io for the current process). I/O performed in subprocesses is inherited as those terminate, so reading the line "write_bytes" before and after your task should give a reasonable estimate. However, this doesn't take different devices into account.
Htop can display io stats per process. You have to only setup to display propper colums by pressing f2 and add io_rate io_write_reate and io_read_rate from menu Setup>Columns
You can use iotop.