lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 19 Sep 2007 17:20:27 -0600
From:	Chris Rigg <cdrigg@...cast.net>
To:	Ingo Molnar <mingo@...e.hu>
CC:	Willy Tarreau <w@....eu>, linux-kernel@...r.kernel.org
Subject: MAX_RT_PRIO - 1 Highest prio?

Hello,

First, I'm assuming that if I want my task to have the HIGHEST priority 
in the system (i.e. preempt any other task whenever it is put into the 
ready queue (assuming I have preemption turned on/configured)), I use 
sched_setscheduler (...) and use the sched_priority in sched_param for 
MAX_RT_PRIO -1. Is this correct?

Second, assuming that MAX_RT_PRIO-1 is the highest, would it be bad on 
an SMP/Hyperthreading system (that's using the migration thread 
balancing in 2.6.20.7) to set a task's priority to MAX_RT_PRIO -1 given 
the fact that the migration threads are already set to MAX_RT_PRIO -1? 
Should I be setting my task's prio to MAX_RT_PRIO-2 to not interfere 
with the load balancing?

Thanks,
Chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ