LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2011, 07:02 AM   #1
baysie
LQ Newbie
 
Registered: Nov 2010
Posts: 11

Rep: Reputation: 0
Run winbind daemon with highest resource priority automatically?


Hi all,

Our RHEL5 & 6 systems use winbind for Active Directory user lookups. All works well, in a pretty standard configuration (done through system-config-authentication), apart from when certain users run intensive processes.

I've noticed that winbind appears to cease functioning when, understandably I guess, it's unable to secure sufficient RAM & CPU when other processes are maxing them out. At this juncture, I get an email from our users stating that they no longer have access to the server(s), and I have to log in via root and restart the winbind daemon - where all springs to life.

I have asked our users to utilise nice and ensure their applications run with the lowest priority, which has worked in most cases, however this is not an ideal solution. Rather, I'd prefer to ensure that winbind (and samba for that matter) always run with the highest resource priority to guarantee daemon uptime.

Does anyone know how this can be done automatically to winbind, so that every time the service starts it has the highest priority to CPU & RAM?

Failing that, is there another way I can ensure winbind always has sufficient resource to run (apart from buying more CPU's and RAM, ofcourse )?

Thanks guys!
 
Old 07-10-2011, 08:34 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I'd prob go into the /etc/init.d dir and add the relevant nice cmd to the script there. If it started by root, it should be able to 'raise' its priority.
If it runs inside a dedicated user, try this http://www.nixtutor.com/linux/changi...nux-processes/ limits.conf.
Actually, this is the proper way to do it.
I don't have a Linux system in front of me right now ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] resource-stickiness automatically move all resources in certain time danian Linux - Server 2 06-20-2011 05:15 AM
Winbind Daemon Hang anhume Linux - Networking 0 09-28-2010 10:37 PM
which value is for highest priority for real-time processes icoming Linux - Software 3 12-19-2009 11:30 PM
Enable daemon to run with service daemon start,etc baddah Programming 6 12-02-2007 06:51 PM
Assigning highest priority to process. gangaraju Fedora 3 02-07-2006 03:22 PM


All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration