Re: Number of cores and game performance

On Sun, 25 Aug 2013 17:46:02 +0000, Scott Swinyard wrote:

> My question to you here in the forum is: is there a way to specify the
> number of cores a specific application will use under Linux?

If a program is written to be single-threaded, then single-threaded it is

  • you can’t specify more cores for a single-threaded application (or
    rather, even if you could, it wouldn’t matter because the software isn’t
    written to take advantage of that).

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On Sun, 25 Aug 2013 19:36:05 +0000, Scott Swinyard wrote:

> What I wanted to do was explicitly set that game to run on only one
> single core in case the system was trying to use more.

You could idle the other cores - that would force it to run on fewer.

Specific assignment of a process to a core can be done using cgroups IIRC,
but it’s not a trivial thing to do - unless someone’s put together a UI
that I’m unfamiliar with (which is entirely possible).

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C