Re: [Discuss-gnuradio] Process Naming
On 05/04/2017 09:23 PM, Dave NotTelling wrote: How are processes named in GNU Radio? I assumed they took on the ID of the block. But testing has showed that not to be the case. I was hoping to be able to see CPU usage of my blocks by running `top -H` and looking at the process names. I also tried setting the block alias but that did nothing to the process name (not even sure what it's for honestly). Is this doable? Thanks! -Dave ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio Gnu Radio calls set_pthread_name(), but this isn't necessarily reflected in the data that any given implementation of "ps" pulls out of /proc and/or the kernel. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Process Naming
I can see that the threads are showing up with meaningful names using `top -H`. Names like `zmq_pub_sink_c1`. The `ps` command doesn't usually show me anything special :( But, `top -H` does which is nice. On Thu, May 4, 2017 at 9:46 PM, Marcus D. Leech wrote: > On 05/04/2017 09:23 PM, Dave NotTelling wrote: > > How are processes named in GNU Radio? I assumed they took on the ID of > the block. But testing has showed that not to be the case. I was hoping > to be able to see CPU usage of my blocks by running `top -H` and looking at > the process names. I also tried setting the block alias but that did > nothing to the process name (not even sure what it's for honestly). Is > this doable? > > Thanks! > > -Dave > > > ___ > Discuss-gnuradio mailing > listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > Gnu Radio calls set_pthread_name(), but this isn't necessarily reflected > in the data that any given implementation of "ps" pulls out of /proc and/or > the kernel. > > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Process Naming
From: Dave NotTelling Date: Thu, 4 May 2017 21:52:04 -0400: > > __ > I can see that the threads are showing up with meaningful names using > `top -H`. Names like `zmq_pub_sink_c1`. The `ps` command doesn't > usually show me anything special :( ps -eLo pcpu,pid,tid,cls,rtprio,pcpu,comm | grep | sort -n ZeroMQ block threads will have names, but the I/O threads that ZeroMQ spawns will still be named "python". The same goes for GUI displays, the block will have a thread name, but the GUI window display processing happens in a thread named "python". Regards, Andy ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio