Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a doubt.. when you have a server with multi CPU and cores. does the OS assign them or is the application who should be able to use them?
I have a red hat server with several cpu/cores and oracle seems to be using 1 core.. instead of using all of them..
not sure if it is something that have to be change on the OS or in the oracle DB application.
any idea where should I start looking at?
Edit:
when I run top. and press 1 I see all the cores, some few has a of use but looks like randomly there is always 1 in 100% or maybe 2 in 49% and 50%..
then on the process list there is oracle always in 100% or 99%..while the overall id% is 94%...
I would like to verify is the application or CPUs core are being used properly.
thanks
First the application may or may not be divided into multiple threads. Many applications are not divided into multiple threads. It is trickier to code an application for multiple threads than for single thread. If the application is single thread, there is nothing the OS can do to make the application get better use of multiple cores.
I don't use any Oracle DB, so I find it surprising that a limit to single thread would exist in that application. But I don't really know.
If the application is multi-threaded and the application does not go to significant extra effort to mange/limit its use of physical cores, then it is the OS that assigns threads to cores. But for purposes of your question, I find it highly unlikely that some OS flaw or weird setting is responsible for the unexpected behavior you report.
Agreed - locking is another consideration.
Merely making an application multi-threaded doesn't make it is thread safe. But you've have to think Oracle has all that sorted out by now - sounds like a (user) config issue.
Well, I have been playing with ps- eLF, htop, etc...
I see activity on all of the cores.. only one process is using one core at the time 100...it could be any core from 1 to 16 ....
there are SEVERAL Oracle processes running across different cores.. so looks like from a OS perspective is fine and there is not a limitation.. even in oracle seems to be recognizing mutliple cores..
the problem is with ONE particular process.
I'm not a DBA, not have access to the oracle DB. so I would check with the DBA to see if they know something..
looks like oracle have something called "Parallel SQL Execution".. will continue reading about it too..
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
This isn't a licensing thing is it? Some Software and hardware vendors can charge a licence fee per core so you only get what you pay for. I know that IBM and HP do this for some of their higher end products (usually not X86 based CPUs) Does Oracle charge a fee to allow scaling of its software in a similar way?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.