I’m on Linux and I am forking/execing a new process out of my C spawn application. Is it possible to also change the naming of these new child processes? I want to be able to identify the process being started in case something goes wrong and I need to kill it manually. Currently they all have the same name. Answer
Tag: process
Is it possible to “hang” a Linux box with a SCHED_FIFO process?
I want to have a real-time process take over my computer. 🙂 I’ve been playing a bit with this. I created a process which is essentially a while (1) (never blocks nor yields the processor) and used schedtool to run it with SCHED_FIFO policy (also tried chrt). However, the process was letting other processes run as well. Then someone told
Linux process memory consumption in bytes (not Kbytes)
In Linux is there any way to check processes memory measured on bytes (using top or ps for example). Not in kbytes, but bytes. Thanks in advance! Answer Beyond the obvious answer of multiplying by 1024 (or 1000 if you want to be SI-correct)? AFAIK top, ps etc. get their info from reading /proc/[PID]/status or something equivalent. Which reports info
getting a program to return immediately at the command line so it’s not tied to the shell that launched it
Some programs return immediately when launched from the command line, Firefox for example. Most utilities (and all the programs I’ve written) are tied to the shell that created them. If you control-c the command line, the program’s dead. What do you have to add to a program or a shell script to get the return-immediately behavior? I guess I’m asking
What killed my process and why?
My application runs as a background process on Linux. It is currently started at the command line in a Terminal window. Recently a user was executing the application for a while and it died mysteriously. The text: Killed was on the terminal. This happened two times. I asked if someone at a different Terminal used the kill command to kill
How do you kill all Linux processes that are older than a certain age?
I have a problem with some zombie-like processes on a certain server that need to be killed every now and then. How can I best identify the ones that have run for longer than an hour or so? Answer If they just need to be killed: If you want to see what it’s matching The -i flag will prompt you