Skip to main content

Questions tagged [priority]

Filter by
Sorted by
Tagged with
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
1 answer
126 views

I have a machine with the network interface enp0s3 which is assigned the IPv4 address 192.168.20.254. Furthermore, on another machine there is a DNS server listening on the IPv4 address 192.168.20.10. ...
Binarus's user avatar
  • 3,951
0 votes
1 answer
830 views

How to set CPU and IO priority for a systemd service? In partucular, how to set the highest values? (Assume that the service is idling most of the time and will absolutely NOT clog the rest of the ...
VasyaNovikov's user avatar
  • 1,569
4 votes
2 answers
4k views

The nftables wiki explains the priorities here. Clearly, the priority is a numeric value like -10, 0 or 10. The Red Hat nftables documentation does the same. Priorities remain numeric in the examples ...
CeSinge's user avatar
  • 93
0 votes
1 answer
1k views

This is a follow-up to linux bonding active-backup mode set priority for multiple interfaces? I'm too new to post a comment there. I've confirmed that ip link set dev <x> type bond_slave prio &...
David's user avatar
  • 3
0 votes
1 answer
632 views

I have two ipv6 interfaces(eth1 and eth2), that receives an IP via DHCP(dhclient is used), but the routes are received via RA messages from switch, to which these interfaces are connected. Since RA ...
lucky_rydar's user avatar
2 votes
1 answer
169 views

I have been trying to use nice/ionice for a while and it turns out that bfq ignores ionice parameters. So how do I prevent a low priority process from consuming all the io bandwith to the detriment of ...
Morrison's user avatar
0 votes
0 answers
260 views

I see that there is a metric keyword in the dhcpcd.conf (as explained e.g. https://unix.stackexchange.com/a/413036/47009), which allows me to set the routing priority for a given interface. However, i ...
umläute's user avatar
  • 6,734
0 votes
2 answers
469 views

How can I go about finding the PID or other information about a process that is doing the work of another process? I'm talking about kworker threads, for example, or any other threads/processes that ...
stochasticlover1's user avatar
0 votes
1 answer
1k views

so I am creating my own script to set priority and cpu affinity for important processes on my system, and I tried using taskset command, but it seems to do nothing. Here's sample: import psutil import ...
Dolidod Teethtard's user avatar
0 votes
0 answers
310 views

I'm running a desktop system where I often have long-running compilation tasks in the background. I'd like to play CPU-limited games while they're running without a significant drop in FPS (the game ...
Atemu's user avatar
  • 886
3 votes
0 answers
354 views

Suppose I have an 18 core CPU with SMT enabled, and there are 18 long runnning processes, all using ~100% of a thread. If I start a 19th process, the kernel will schedule it to run on one of the cores,...
uLoop's user avatar
  • 141
2 votes
2 answers
3k views

I have a problem with my nftables setup. I have two tables, each one has a chain with the same hook but a different name and priority. The tables are in different files which are loaded by an include ...
smhrambo's user avatar
1 vote
0 answers
267 views

I want to change a thread priority and I have found many examples using pthread_setschedparam, but I need to confirm if the priority can be changed on the fly if the thread is already running. In the ...
alejandro mendoza's user avatar
1 vote
0 answers
416 views

On a dual-stack workstation (single interface, Ubuntu 18.04), I'd like IPv6 to be chosen first, before IPv4. I guess that means essentially to have domains being resolved first by DNS6, and then by ...
Déjà vu's user avatar
  • 656
2 votes
0 answers
330 views

I'm trying to configure our Slurm to allocate users' jobs according to past usage. The goal is to have the job priority consider past time usage of mainly GPUs. I understand I must use the FairShare ...
itay1itzhak's user avatar
0 votes
1 answer
239 views

I learnt that ni represents the cpu used for userspace processes whose niceness or priority value is changed, but in my system, which is CentOS Linux release 7.9.2009 (Core), I did below test, all the ...
russelc's user avatar
0 votes
1 answer
998 views

Is it possible, in Linux, to allow an user to change the priority of a process owned by root? More specifically an IRQ process? For an embedded real-time application I want to raise the priority of ...
fws's user avatar
  • 1
7 votes
1 answer
33k views

While seeing the manual for swapon command the priorty option is described as -p, --priority priority Specify the priority of the swap device. priority is a value ...
Sudip Ghimire's user avatar
4 votes
2 answers
1k views

Can someone explain how "real" process priority (i.e. pri_baz field of ps) is calculated? My guess is: pri_baz = 99 - static_priority # if static_priority > 0 (real-time process) pri_baz = 100 + ...
Jorge Lopez's user avatar
2 votes
0 answers
945 views

The pulseaudio daemon runs with nice level -11 by default, via rtkit. However, I'm noticing choppy audio at times of high cpu load, and decreasing the nice value even further by setting high-priority ...
Marc.2377's user avatar
  • 1,202
1 vote
1 answer
154 views

Several times I've run into with the problem of Ubuntu hanging when a memory leak happens in some application process (Chrome/Sublime/etc.). As a result, the keyboard and mouse stop reacting. I even ...
Oleksandr Bratashov's user avatar
0 votes
1 answer
652 views

I want to give a program I'm running in linux priority over other programs. I have sudo access and tried using sudo and the nice command. Specifically I ran a bash script file called RUN.sh that has ...
user378159's user avatar
1 vote
1 answer
640 views

I want to have packages installed manually via dpkg -i not being updated. I figured the most elegant way to do this would to pin them to a high priority. The manpage of apt_preferences says Assign [...
philipp2100's user avatar
1 vote
1 answer
1k views

I am running a python program on the raspberry Pi (Raspbian) that I would like to give higher priority. I want to run the following command : $ sudo chrt --rr 50 python3 loopExample.py I have read ...
Lightsout's user avatar
  • 165
0 votes
0 answers
55 views

All right, my question is not sufficiently specific. I've not mentioned the kernel version, the distribution and other potentially interesting things. But, anyway... these are important but doesn't ...
Daniel Bandeira's user avatar
1 vote
1 answer
490 views

Can same level runlevel scripts have the same priority? For instance, can say runlevel x have these 2 scripts: S10ScriptName1 and S10ScriptName2 ? If so, what is the execution order?
Juan Miguel Ruiz-Olivares's user avatar
3 votes
1 answer
1k views

The Linux kernel implements two separate priority ranges. The first is the nice value, a number from –20 to +19 with a default of 0. Nice values are the standard priority range used in all Unix ...
Luigi Capogrosso's user avatar
1 vote
1 answer
406 views

Can anybody explain how to work with thread priorities in OpenBSD? Information about this question in MAN pages is poor, it does not give clear understanding. In particular: sched_get_priority_min/...
Mikola Akbal's user avatar
2 votes
1 answer
857 views

I have got some idea from: https://stackoverflow.com/questions/8887531/which-real-time-priority-is-the-highest-priority-in-linux about how the real time priority values assigned to different ...
explorest's user avatar
  • 552
2 votes
0 answers
54 views

According to top's manpage: 16. PR -- Priority The scheduling priority of the task. If you see `rt' in this field, it means the task is running under real time scheduling priority. ...
HCSF's user avatar
  • 223
0 votes
1 answer
3k views

In my embedded device I absorb strange behaviour with the protocol we use, sometimes it takes a while to send the data via serial device using FIFO. My suspicion is Linux is not real-time OS and why ...
danglingpointer's user avatar
1 vote
1 answer
82 views

In journal filesystem(for example ext4, XFS, ZFS, JFS, btrfs), there are file access permission rules. Hence if I mount a HDD which include a unix OS on it, when I access the file on this disk ...
pah8J's user avatar
  • 237
1 vote
0 answers
206 views

Please, let me know if there is a tool, which allows to give different reading (writing) priority to different users on Linux. I am looking for something similar to 'ionice' but able to set I/O ...
S.V's user avatar
  • 141
1 vote
1 answer
9k views

I’m trying to reimplement in a backward-compatible way the RobotC API from C (although some details would better fit or would be easier with C++), and trying to reimplement their multithreading API in ...
galex-713's user avatar
  • 215
2 votes
1 answer
4k views

I have the below output from top command. Where is the process priority of the processes? Mem: 678048K used, 336240K free, 0K shrd, 4K buff, 523012K cached CPU: 0.5% usr 26.1% sys 0.0% nic 72.9% ...
Ravi's user avatar
  • 769
2 votes
0 answers
1k views

I have a multi-threaded app, with 4 worker threads that until recently performed very well on my 4-core CPU. The system is running Ubuntu 16.04.3 LTS. Today I updated my OS with sudo apt-get dist-...
Bram's user avatar
  • 999
1 vote
0 answers
600 views

I have a setup wherein one "master" Linux system communicates with 3 "slave" systems also running Linux on a dedicated Ethernet interface(just the master & the 3 slaves). The slaves send data to ...
John Smith's user avatar
3 votes
1 answer
879 views

I want a CPU-intensive process to have the lowest possible impact on other processes. I can use nice -19 for maximum niceness and chrt -i 0 to give the process a SCHED_IDLE priority. Which is more ...
kontextify's user avatar
4 votes
1 answer
2k views

I have 2 threads, each set to a different real-time priority using SCHED_FIFO. Thread throttling has been disabled, so theoretically the highest priority thread should be able to use 100% of CPU ...
Echo404's user avatar
  • 123
3 votes
0 answers
457 views

Although I can see a "nice" value ("NI") via ps, it seems to have no effect on the actual cpu-time used by a process: PID %CPU PRI NI COMM 57081 77.6 12 10 cpu-chew 57080 77.1 12 0 cpu-chew ...
not-just-yeti's user avatar
2 votes
1 answer
528 views

I am trying to run an application inside a Centos container and needs to run in real time. I googled around and the suggestion was to add lxc.cap.keep = sys_nice. After I did it, lxc-start complains ...
msbic's user avatar
  • 21
7 votes
2 answers
4k views

I would like to configure my desktop Linux system so that whenever I start running a specific program (run that processes of this program) the respective process gets assigned a high priority. How to ...
ingli's user avatar
  • 2,039
1 vote
0 answers
39 views

Sometimes, a process on my computer uses a lot of RAM, and ends up using the SWAP. Therefore, my computer becomes extremely buggy, and I can't even toggle a terminal or a virtual console to kill the ...
Sidahmed's user avatar
  • 1,368
8 votes
1 answer
2k views

I know you can change a process niceness with setpriority or nice or renice. However, does Linux automatically adjust/change a process niceness without user input? I have a process for which I use ...
Luis's user avatar
  • 133
9 votes
3 answers
7k views

On Windows I have frequently changed the priority of a games process to 'high' or 'realtime' to get a performance boost. This has never resulted in any problems with my hardware. I was thinking that ...
Totem's user avatar
  • 1,171
0 votes
1 answer
427 views

I'm investigating how exim deliver mails, and I came to the conclusion that when the server is going to send a email exim makes a nslookup and get the higher priority (lower value) MX record and tries ...
Mc Kernel's user avatar
  • 531
4 votes
1 answer
2k views

I have a piece of C++ code that runs just fine when I run it from a Linux terminal, but which throws an EPERM error when run from a SystemV (init.d) script on bootup. The error comes from a ...
codemonkey851232's user avatar
0 votes
1 answer
346 views

I am trying to learn the scheduling policy on Linux with a small C++ application. The same should be valid for C. I am changing the priority of my app using the code below: sched_param tParam; ...
Ali's user avatar
  • 181
5 votes
1 answer
2k views

I was trying to change linux process priority using chrt. I changed priority of one process to SCHED_FIFO from SCHED_OTHER. I could see some improvement in the perfomance. I run linux angstrom ...
Gilson Varghese's user avatar