Skip to main content

Questions tagged [process]

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

Filter by
Sorted by
Tagged with
3 votes
2 answers
92 views

I tried tcp_connect, udp_sendmsg kprobes together on an eBPF program and it worked, but it missed a lot of connections. I couldn't really get any reliable results with other kprobes as well so I tried ...
Subtle Development Space's user avatar
-4 votes
2 answers
303 views

In the below shell script I have list of process IDs which need to be killed. When killing a process I am getting kill: 1234567: no such process error even after checking if the process id existence ...
Harry's user avatar
  • 239
0 votes
1 answer
131 views

I'm running a server on Linux, and I need the specific PID so I can kill it later. I'm using PHP with shell_exec to run the server, but how do I get the specific PID of this server? while($...
Willian's user avatar
  • 101
0 votes
2 answers
123 views

I have a running process on localhost on port 5000. I have tried kill - 9 <PID> which it works for that PID but it starts a new process with a new PID instead. What's the issue here? I'll put ...
Ajit Sharma's user avatar
1 vote
0 answers
30 views

So I am working on a debugger for linux s390x system and have the whole disassembler etc set up for reading the ELF file. For debugger I just run it on the process with base address from the process ...
well-mannered-goat's user avatar
0 votes
1 answer
161 views

So I am designing a feature to redirect log file if there are multiple processes of this very program are running. I guess this requires me to somehow get to know whether there exists yet unfinished ...
PkDrew's user avatar
  • 111
4 votes
0 answers
123 views

The window of my text editor Xed froze with Unsaved documents just as I was doing 'File'->'Save as...' to save them... [How ironic.] Since the process still exists, I am trying to recover the text ...
The Quark's user avatar
  • 454
0 votes
1 answer
90 views

I'm working on a project where I want to study the impact of process priority on system behavior. I know that tools like nice, renice, and chrt can change the priority or scheduling policy (e.g., ...
RustySyntax's user avatar
0 votes
2 answers
123 views

Environment: shell is BusyBox bash 3.2 running in what started-out as Ubuntu Server many years ago, but has since been tweaked a great deal by the manufacturer of this particular box to become a ...
OneCheapDrunk's user avatar
7 votes
2 answers
414 views

I have sshd with PID of 1957: mohsen@debian:~$ ps ax -o pid,nice,pri,cmd |grep 1957 1957 -2 21 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups According to above, my nice number is -2 ...
PersianGulf's user avatar
  • 11.3k
2 votes
1 answer
171 views

I'm trying to understand whether it's possible to map two users from a user namespace to two different users on the host. The goal is to replicate the same permissions I have on my host inside a ...
Liric Ramer's user avatar
0 votes
0 answers
62 views

As a way to better understand Linux kernel structures, interacting with and pulling information from these (and also getting more experience coding in C), I've been building simple kernel modules to ...
genericuser99's user avatar
0 votes
1 answer
102 views

I am trying to implement a program that would run as PID1 in a Podman container and would wait for the the user to podman exec into the container at least once before exiting. /sys/fs/cgroup/pids.peak ...
user11589013's user avatar
2 votes
1 answer
927 views

I'm on Fedora, where all preinstalled shells apparently support bashisms: bash --posix does, and even sh. Still, when I used this function, pathprepend () { if [[ ":$PATH:" != *":$1:...
Arch Stanton's user avatar
0 votes
1 answer
75 views

I am interested in finding out the last time a process was scheduled to run. That is, how long it has been sleeping, since it last ran. When was it last active? Basically, a generalization of what the ...
Linas's user avatar
  • 205
1 vote
1 answer
70 views

I open two terminal windows. In one, I run: $ read foo I don't press RETURN, so read is blocking. In the other terminal window, I search for the process: $ ps -ef | grep foo user 95292 94814 ...
Ruben P. Grady's user avatar
0 votes
1 answer
169 views

I wrote a simple Python script to scan /proc/{pid}/maps for regions that are writable and executable on my computer. It came up with a few hits surprisingly, all private anonymous. Wondering why a ...
spinkus's user avatar
  • 510
1 vote
1 answer
312 views

Environment Ubuntu22.04 sysstat version 12.2.0 Number of logical CPUs 16 man pidstat shows the following, but I would like to know more specifically about the denominator and numerator of %wait. ...
LAPK's user avatar
  • 11
12 votes
2 answers
1k views

I need to run multiple shell scripts sequentially (s1.sh, s2.sh, s3.sh) with the following requirement: If a script produces no output (stdout or stderr) for 1 minute, it should be terminated After ...
Just a learner's user avatar
1 vote
1 answer
85 views

I am working on an embedded Linux system (kernel-5.10.24), and using busybox as init. Now I hit a strange problem about signal settings of a kernel thread in system. The kernel thread is from a device ...
wangt13's user avatar
  • 651
0 votes
1 answer
189 views

I am not a strong linux user, but I want to better understand the material in this post here which talks about linux namespaces https://stackoverflow.com/questions/44666700/unshare-pid-bin-bash-fork-...
learningtech's user avatar
0 votes
0 answers
97 views

I have the same problem on all servers running Java processes. I have lots of available memory. But my swap is full of Java-related pages. But the system never cleans its swap, Java pages stay there &...
Eduardo's user avatar
2 votes
0 answers
115 views

I am using windows WSL2, and opened just one terminal session. I used the command ps and ps a. From what I know, the bash with PID 559 is the shell I am interacting with. The question is, why do I ...
B1LLP4RK's user avatar
0 votes
1 answer
64 views

When a process execs, looking at kernel code for environ_read(), it seems that if the mm_struct doesn't yet exist / is null or the env_end member of that mm_struct is null, environ_read() will return ...
Gregg Leventhal's user avatar
1 vote
1 answer
86 views

Let's say, we export an environment variable from the shell, export A=thisisa and from the same shell, we start the cron daemon, the shell would then pass the environment variable A to its sub ...
Iresh Dissanayaka's user avatar
1 vote
0 answers
87 views

I have a question regarding the processes launched via a SSH session, after having performed a su - user. My question applies to RHEL 8, but might as well to other O/S. The SSH connection is initiated ...
TontonS's user avatar
  • 11
1 vote
1 answer
109 views

I want to move the resident/virtual data of a SIGSTOPped process out of main memory and into any suitable swap. With the ability to revert the procedure before SIGCONTinuing the process. The system ...
bitmask's user avatar
  • 1,256
1 vote
1 answer
144 views

I am seeing a very odd behavior. /proc/1154/cmdline exists, and kill -0 1154 succeeds, but ps -ef | grep 1154 and ls /proc | grep 1154 do not show anything. 1154 was a postgres process in the middle ...
Hari Krishna S's user avatar
5 votes
2 answers
1k views

If a CPU exception in kernel, such as bad memory access or invalid opcode, happens in the context of servicing a user process (like syscall or page-in), or in a kthread process, then, until ...
Elisa K. K.'s user avatar
0 votes
2 answers
155 views

According to this answer to How to Hide PID and Exit Status When Running a Background Command in Terminal, using (some command &) one can stop the PID of the background process from appearing in a ...
userrandrand's user avatar
1 vote
0 answers
40 views

In Linux, there is a per-process kernel stack that stores at the bottom of it (or top if the stack grows upwards) a small struct named thread_info, which in turn points to the task_struct of the ...
Idan Rosenzweig's user avatar
0 votes
1 answer
153 views

I have a server (linux 4.18+intel xeon) which has isolated cpus for latency-sensitive service. I noticed that the service process's nr_involuntary_switches is gradually increasing every a few seconds ...
Xiaoyong Guo's user avatar
0 votes
0 answers
96 views

Consider this: > dbus-send --session --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.GetConnectionUnixProcessID string:org.gnome.keyring method return time=1724158870.854936 sender=...
RJVB's user avatar
  • 274
1 vote
1 answer
253 views

I'm aware that because of PID-reuse on Unix-like kernels, signals can be delivered to the wrong process if they are sent after the PID has already been reaped. Discussion of what follows will probably ...
Ani Agarwal's user avatar
3 votes
2 answers
573 views

We have this GNU tar command as shown: $ tar -xjf /dev/st0 --to-command='sh -c '\''printf "%s\n" "$TAR_SIZE $TAR_REALNAME" >> "$TAR_ARCHIVE.sizes.txt"'\' Is there ...
leetbacoon's user avatar
0 votes
1 answer
106 views

I wish to ping my router in background process. Also I want to control ping process as a service: start, status, stop. So, I create lock file and store PID in it. But actually PID is changing, and I ...
youni's user avatar
  • 110
0 votes
1 answer
574 views

I have been experimenting with bluetoothctl and blueman. I have closed the window of blueman. I have also typed quit in bluetoothctl's command line interface. I have also run systemctl stop bluetooth. ...
Tim's user avatar
  • 107k
0 votes
1 answer
263 views

I ran a container using the alpine image and used timeout to run a command in it. After the timeout command ran, there is a dead process left in alpine, and I cannot kill it using the kill command. My ...
Ui Hirazawa's user avatar
0 votes
0 answers
99 views

Consider a Linux process that is currently running. We want to limit the amount of RAM used by this process so that it does not interfere with the operation of the system. What tools or commands can ...
user16385455's user avatar
0 votes
2 answers
96 views

We know that process information can be obtained from the /proc directory, such as being able to see the PID of all processes, etc. And many user commands, such as top, ps, and so on, essentially ...
w zc's user avatar
  • 1
0 votes
1 answer
72 views

I have binary program named wstunnel. That program has no option to specify outgoing traffic. By default it will use ens3. I expect the program will use warp interface. I'm not sure iptables can solve ...
Muhammad Ikhwan Perwira's user avatar
0 votes
1 answer
83 views

Let's say I have a file named "app.log" and I want to find out which process is writing the log, but I have restricted permissions, I have tried the following: lsof /path/to/file, which I ...
Ilgar's user avatar
  • 13
0 votes
1 answer
214 views

While attempting to create a program that reads some configuration before launching programs as a normal user and then as the root user, I noticed this odd behavior. I can't seem to find mention of it ...
byteit101's user avatar
  • 135
0 votes
1 answer
180 views

Suppose I open a shell on ubuntu OS, then open a software such as matlab via matlab & In the matlab GUI, I do a system command system('/path/to/my/cppprog') % <-- PID of this running program? ...
SolidMechanicsFan's user avatar
1 vote
0 answers
56 views

How can I find the file descriptor that a process reads input from? Background I run a Vite (pronounced veet) server when developing in an Alpine container. Currently I login to the container and ...
b01's user avatar
  • 4,774
-3 votes
1 answer
153 views

why in Linux do we not create a process from scratch, as "init" is created, but create a "fork" of it by the method of branching?
 Шмига Дарина's user avatar
0 votes
0 answers
78 views

A program from a vendor gets killed instantly. I need to know why. Log shows nothing relevant. Any advice? I looked into OOM killer etc. Added tons of swap. Did not specify log in journalctl so I ...
Normand Robert's user avatar
1 vote
0 answers
175 views

As the question title suggests: I have set max_connections = 2 in my my.cnf file, but when I activate my mysql daemon, the thread count sits at 37. I am searching online but cannot find indication my ...
user10709800's user avatar
1 vote
1 answer
97 views

I'm completely new with Linux so forgive me if this seems like an absurd question. I am trying to open new tabs on Firefox without a url from the terminal. So my command is: $ firefox -new-tab -search ...
lems's user avatar
  • 13
1 vote
1 answer
873 views

I have a bash script listening on a pipe for commands. When it sees a command it runs it. However, I would like it to support the "sideloading" of bash functions that can be called at a ...
nopcorn's user avatar
  • 9,379

1
2 3 4 5
54