LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2018, 04:40 PM   #1
pyroman59
Member
 
Registered: Jul 2005
Posts: 78

Rep: Reputation: 16
Limiting CPU cores per application execution


Hi - I was wondering if I could limit the amount of cores an application program could use. We have 12 total cores but we want to limit Oracle WebLogic's use to just four. Is there a way to do this??? (REF info: HP DL380, RHEL6.9)
 
Old 07-19-2018, 04:43 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
It's called "process affinity". I don't have any experience with it myself, but this guide looks okay:

https://www.glennklockwood.com/hpc-h...-affinity.html
 
Old 07-19-2018, 07:17 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That's a little heavy for a typical (non-HPC) business environment. cgroups is the in-kernel way to do this - well supported and documented pretty well in RHEL "Resource Management Guide".
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Spectre - new exploit for ARM cores that have a speculative execution engine implemented - check if your platform is affected abga Slackware - ARM 3 01-10-2018 04:56 AM
How to get physical CPU count, cores per CPU, and CPU type on RHEL and CentOS anon091 Linux - Server 7 01-08-2015 10:57 AM
CPU cores usage mikes88 Solaris / OpenSolaris 7 03-20-2012 05:44 PM
hide cpu cores from an application thllgo Linux - Server 3 06-17-2010 04:08 AM
Software and CPU Cores DIGITAL39 Linux - Software 8 10-10-2007 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:48 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
Open Source Consulting | Domain Registration