Re: Monitoring a single process

2025-01-17 Thread Max Nikulin
On 17/01/2025 11:56, Stefan Monnier wrote: One of my main uses is when a tool is sitting there without giving me any feedback and I'm wondering what it is that it's doing. E.g. recently this occurred with `bup`, where I wanted to see if it was mostly talking to the remote `bup`, or mostly reading

Re: Monitoring a single process

2025-01-17 Thread Michel Verdier
On 2025-01-16, Stefan Monnier wrote: > E.g. recently this occurred with `bup`, where I wanted to see if it was > mostly talking to the remote `bup`, or mostly reading local files or > writing local files (so as to guess in which phase > it is, and whether it's making progress), or none of the abov

Re: Monitoring a single process

2025-01-16 Thread Stefan Monnier
Thank you for all your answers, this pointed me to tools I was not aware of and to options I was not aware of in tools I knew. `lsof` seems able to give me a lot of info, but has so many options that I haven't yet found a way to give me something more or less useful. But at least I now know that i

Re: Monitoring a single process

2025-01-07 Thread Dan Ritter
Stefan Monnier wrote: > Is there a tool somewhere that lets me monitor a single process? > > Something I'd run, passing it a PID and which would display a regularly > refreshed status of what the process is doing: MB/s read from the > filesystem, MB/s written to the filesystem, maybe even with mo

Re: Monitoring a single process

2025-01-07 Thread Nicholas Geovanis
On Tue, Jan 7, 2025, 8:09 AM Stefan Monnier wrote: > Is there a tool somewhere that lets me monitor a single process? > > Something I'd run, passing it a PID and which would display a regularly > refreshed status of what the process is doing: MB/s read from the > filesystem, MB/s written to the f

Re: Monitoring a single process

2025-01-07 Thread Max Nikulin
On 07/01/2025 21:08, Stefan Monnier wrote: Something I'd run, passing it a PID and which would display a regularly refreshed status of what the process is doing: MB/s read from the filesystem, MB/s written to the filesystem Just some ideas, perhaps to be discarded after evaluation. It seems io

Re: Monitoring a single process

2025-01-07 Thread Michael Stone
On Tue, Jan 07, 2025 at 10:25:02AM -0500, Michael Stone wrote: On Tue, Jan 07, 2025 at 09:08:52AM -0500, Stefan Monnier wrote: Is there a tool somewhere that lets me monitor a single process? Look at pidstat in the sysstat package. I think you'll need multiple tools to get everything you're l

Re: Monitoring a single process

2025-01-07 Thread Michael Stone
On Tue, Jan 07, 2025 at 09:08:52AM -0500, Stefan Monnier wrote: Is there a tool somewhere that lets me monitor a single process? Look at pidstat in the sysstat package. I think you'll need multiple tools to get everything you're looking for, e.g., maybe lsof.

Re: Monitoring a single process

2025-01-07 Thread Frank Guthausen
On Tue, 07 Jan 2025 09:08:52 -0500 Stefan Monnier wrote: > Is there a tool somewhere that lets me monitor a single process? > > [...] > > `strace` gives enough data to compute at least part of the above info, > so it seems doable, but I haven't seen any reference to such a tool > pass by my des

Monitoring a single process

2025-01-07 Thread Stefan Monnier
Is there a tool somewhere that lets me monitor a single process? Something I'd run, passing it a PID and which would display a regularly refreshed status of what the process is doing: MB/s read from the filesystem, MB/s written to the filesystem, maybe even with more detail (actual file name(s) ac