A process is an instance of a computer program that is being executed.

learn more… | top users | synonyms (1)

0
votes
0answers
30 views

System CPU Time and User CPU Time Calculation for a Process in Linux

I want to calculate CPU time consumption of a particular process in system mode and user mode using statistics present in /proc/<PID>. There are two fields utime and stime in ...
0
votes
3answers
46 views

Find the parent of a process

I am trying to write a script to help with computer security. I am trying to look for open ports, find the PID, and find what called it. I have it working, where my output looks something like this: ...
0
votes
1answer
26 views

Issues executing program

Ultimately I'm trying to get a program to run at start up and work correctly. I have been successful in getting it to show up in running processes after a reboot, but it doesn't seem like it is ...
2
votes
3answers
34 views

(In)significance of [… ] and tty root processes

A colleague of mine assigned me to perform a root-cause analysis of an enterprise security server sometime ago. We knew the problem resided in one of the processes run by root but did not know which ...
3
votes
1answer
36 views

Alternative to iotop for non-root user without sudo privileges

I'm looking for an alternative to iotop. Here's my situation: I want to find out if a program is accessing the hard drive a lot while running. iotop requires root/sudo privileges. My account is on ...
3
votes
1answer
21 views

Limit maximum number of concurrent scp processes running on a host

I am facing a problem where I have a fleet of servers which contain a lot of data. Each of the host runs many instances of a specific process p1, which makes several scp connections to other hosts in ...
1
vote
0answers
19 views

process duplication [migrated]

how to create a process at kernel level? As the functions do_fork and copy_process are static we cannot use them, so is there any way we could use their functionalities or do I have to implement ...
1
vote
1answer
38 views

How to find max parallel execution limit?

is there any limit for parallel execution? if yes, how to find out the maximum limit? I am creating a script which create a string of scripts concatenated by '&' and uses eval to execute them all ...
1
vote
0answers
13 views

How to interpret numerous processes with exact same RAM usage [duplicate]

I have a VM that processes files, parses the information and saves it to a database. I've been monitoring the resource usage and noticed /usr/sbin/console-kit-daemon --no-daemon.. Below you see a ...
1
vote
2answers
28 views

How can a process appear to have different name in ps output?

recently I had to clean up a hacked server. The malicious process would appear as "who" or "ifconfig eth0" or something like that in "ps aux" output, even tough the executable was just a jumble of ...
1
vote
2answers
35 views

How to monitor use of Huge Pages per process

I'm trying to determine which process is using a large number of Huge Pages, but I can't find a simple Linux command (like top) to view the Huge Page usage. The best I could find was $ cat ...
2
votes
3answers
74 views

CPU and Memory usage monitoring for a single process

I need to monitor the CPU and Memory usage for a single process in an AIX server. The program runs 3 times a day. I need to find the way to capture statistics within some time intervals, lets say ...
0
votes
1answer
24 views

Process with randomized name

We have a centos server with customers running vps containers on it. When we run ps auxwww we see a randomly named process running (consuming a lot of bandwidth). Every time we check it is named ...
0
votes
1answer
49 views

How does kill cascade in Linux? [duplicate]

Let us say I have process A which spawns process B, which spawns process C. Under what circumstances will killing A kill the whole chain (or tree I guess) and when will it not? I sometimes find it ...
1
vote
0answers
16 views

Spawning processes on a job stack

I have a hobbyist server on which I want users to upload a file, and then receive the overcome of some processing (server-side) over the given file. I am doing the processing synchronously so that for ...
1
vote
1answer
57 views

How to check which process is using most memory

When I check free in one of Prod server it showing 70% of memory is being used: total used free shared buffers cached Mem: 164923172 141171860 23751312 ...
14
votes
3answers
1k views

How to know where a program is stuck in linux?

I am running the following command on my ubuntu server root@slot13:~# lxc-stop --name pavan --logfile=test1.txt --logpriority=trace It seems to hang indefinitely. Whenever this happened on AIX, I ...
1
vote
1answer
20 views

How to use pgrep inside bash script correctly?

I'm running a GUI program called zeal(compiled from src) and add a script(zeal.sh) for the executable: #!/bin/bash if pgrep zeal &>/dev/null; then printf "already on\n" else ...
0
votes
2answers
70 views

The program pstree and htop showing threads with unique PIDS. How is this possible?

I ran the program pstree -p 31872 which printed the following output: ruby(31872)─┬─{ruby}(31906) └─{ruby}(32372) The man page for pstree says: Child threads of a process ...
1
vote
1answer
20 views

Remove Gnome Components detect by Packagename

I have tried out the dpkg, aptitude and apt commands. On the gnome desktop I decided to remove one component. sudo apt-get remove gnome-games or something else, all works fine. But if I don’t ...
3
votes
3answers
58 views

How to view a specific process in top

Are there any relatively strightforward options with top to track a specific process? Ideally by identifying the process by a human readable value? e.g. chrome or java. In other words, I want to view ...
1
vote
0answers
35 views

monitor a process by matching the full cmdline

I'm looking for a software that can monitor a process (specified as a partial string/regexp match (e.g. grepping) in its full command-line) in terms of cpu and memory usage. If any of those processes ...
9
votes
2answers
158 views

Print pids and names of processes as they are created

From the question here, the OP wants to repeatedly poll the pid of a process using pidof in a shell script. Of course this is inefficient as a new process must be started for the pidof program ...
1
vote
0answers
68 views

Are there any alternatives to pidof? (smaller footprint)

Well, I've just found out that with extensive usage of pidof in very short intervals, the seemingly tiny tool can be a great CPU hog. (Source: top) On my older machine, it can easily reach 30 percent ...
2
votes
2answers
122 views

set packet rate limit via iptables

I have a packet rate limit (max. 10 per seconds) which is set by my internet provider. This is a problem if I want to use the AceStream player, because if I exceed the limit I get disconnected. How ...
7
votes
4answers
412 views

How to find source of spawning process?

I have a Java process running on a RedHat Linux instance. The problem is it keeps reappearing after I kill it. I am not sure where to look. I've already went to crontab, but no luck. I've looked at ...
1
vote
1answer
25 views

What is the meaning of every column when executing psig command?

I try to use psig command to track signal dispositions of a process on Solaris: bash-3.2# psig 3109 3109: bash HUP caught termsig_sighandler 0 ...
3
votes
1answer
37 views

How to find the file corresponding to a pipe opened by a process? [duplicate]

I created this script, which listens for characters received on a hardcoded pipe, and tries to eval those characters. I call my script loop_executor.sh This is all it contains: !/bin/bash while : do ...
4
votes
3answers
99 views

How to get whole command line from a process?

How can I get the command arguments or the whole command line from a running process using its process name? For example this process: # ps PID USER TIME COMMAND 1452 root 0:00 ...
2
votes
1answer
25 views

How do I find the resident memory size of a process on busybox?

I run top on busybox and it shows all processes and their virtual memory size. How do I determine how much RAM is being used by each process?
3
votes
0answers
50 views

Kill a whole process tree regardless different GIDs

I am having issues with process control using the signals available to the process abstraction. In the example below you can see there is a perl script which is the parent of the whole tree with a ...
1
vote
1answer
35 views

Types of sleep modes for processes

I came across this while troubleshooting why our server is doing down everytime the oracle process is killed. I listed the oracle process running on the server using ps aux | grep oracle and here is ...
3
votes
1answer
69 views

Why does the 'user' and 'sys' time vary on multiple executions?

There is a nice question and answer explaining the relationships between 'real', 'user' and 'sys'. It explains the reasons why 'real' can vary, and defines the 'user' and 'sys' as times the process ...
2
votes
1answer
70 views

How to change the kernel max PID number? [duplicate]

The default PID max number is 32768. To get this information type: cat /proc/sys/kernel/pid_max 32768 or sysctl kernel.pid_max kernel.pid_max = 32768 Now, I want to change this number... but I ...
2
votes
2answers
55 views

How can I make a for loop starting a lot of processes?

I want to test some bug, and to do that I need to have a situation where the PID is larger than 99999. I am thinking of a bash script, a for loop. Any ideas?
6
votes
1answer
289 views

Is there a way to see if process listening on TCP port receives a message?

According to tcpdump, my server receives the following TCP packet: 12:52:29.603233 00:19:e2:9e:df:f0 00:16:3e:6a:25:3f, ethertype IPv4 (0x0800), length 74: 10.10.10.65.38869 192.168.215.82.22: ...
0
votes
2answers
54 views

What determines if an executable can be run in different independent processes simultaneously?

I posted a question about how to run an executable (a PDF viewer) under wine independently in multiple processes (independent means no communication between them, it is not parallel computing). I ...
0
votes
1answer
63 views

Kill unresponsive process by name but preserve responsive processes

For some reason, I end up with a fair few Google Chrome Helper processes which stop responding, hogging CPU resources. Usually I just run killall Google\ Chrome\ Helper, however this kills all, ...
2
votes
0answers
56 views

Why do some processes pass on their cpu usage to another process when it ends?

I have wondered this for a while. For example, lets say process1 is a process that uses a lot of cpu power, like 90%. Its a video game. Then i have process2 which uses 10-12% cpu. Its a web browser. ...
2
votes
1answer
37 views

w command for the other network hosts

While the who command refers to the local machine, rwho shows the same informations about all the known hosts of the local network. Similarly, w shows informations about the users on the local ...
0
votes
2answers
50 views

How to trick an application to run different processes?

I am running PDFXCview.exe (for pdfxchange viewer portable version) under wine to open a pdf file, by PDFXCview.exe 1.pdf When I do the same for another file, the other file will be opened by the ...
24
votes
3answers
1k views

How can I see the exact command line being executed inside some bash instance?

I have a long running bash instance (inside a screen session) that is executing a complex set of commands inside a loop (with each loop doing pipes, redirects, etc). The long command line was ...
31
votes
4answers
2k views

Is there any UNIX variant on which a child process dies with its parent?

I have been studying the Linux kernel behaviour for quite some time now, and it's always been clear to me that: When a process dies, all its children are given back to the init process (PID 1) ...
1
vote
2answers
63 views

How to get a procesess's actual memory usage (including data in swap)

I'm trying to check how much memory strain a process is actually putting on the system, but ps, top and friends are almost useless for that purpose as they only report 3 statistics: RES - the ...
2
votes
3answers
1k views

Cron job to check if PHP script is running, if not then run

I am wondering if someone might point me in the right direction. I've got little experience working with the Linux command line and recently due to various factors in work I've been required to gain ...
6
votes
1answer
207 views

What's the purpose of the /proc/pid/mountinfo file?

What's the purpose of the /proc/pid/mountinfo file (with pid being numerical process id)? As far as I can see it reflects contents of the /proc/mounts file but with added information. Also the file ...
3
votes
2answers
133 views

Kill a process that keeps restarting

What if 'kill -9' does not work? or How to kill a script which starts new processes? doesn't help me in anyway. I have a python script which starts automatically with another process id using ...
0
votes
0answers
14 views

Terminal output from a program not opened in terminal [duplicate]

Using bash on Ubuntu, I can launch programs from command line and watch what the program is doing 'in the background' while I use the GUI frontend. This is particularly handy when a GUI progress bar ...
0
votes
1answer
25 views

Using $BASHPID in grep statement

I'm trying to exclude the PID of the subshell from the results returned by pgrep. Note that the name of the file is the same as the name passed to pgrep. Why does setting a variable equal to BASHPID ...
1
vote
1answer
38 views

How can I determine what individual ulimit constraint a process has?

I have a service that sets a custom limit for open files (ulimit -n 5000) as part of its init script. My understanding is that this will be effectively for the service and its child processes. Since ...