Results 1 to 5 of 5

Thread: allow the process to use a single core processor

  1. #1
    Join Date
    Aug 2011
    Beans
    23

    allow the process to use a single core processor

    Hello have an application that can load the CPU to 400 percent, that is, all the core system at a time. how to set up a process to use only one CPU core
    CPU model name: Intel (R) Core (TM) i5 CPU M 450@2.40GHz
    Chromium application
    Performance Monitor shows the usage of 400%

  2. #2
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,900
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: allow the process to use a single core processor

    AFAIk if the program itself doesn't allow you to control how many threads it uses (chromium is very multithreaded) then there is no external way to control threading. You can however try adjusting the nice value, which will give it a lower cpu priority compared to other processes.

    The gui way is to open system monitor, click the processes tab, right click the offending process, and give it a "very low" priority. I am unsure of how much of an affect this will give you so YMMV.
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  3. #3
    Join Date
    Aug 2011
    Beans
    23

    Re: allow the process to use a single core processor

    its not a real solution
    but i try
    thanks

  4. #4
    Join Date
    Mar 2012
    Beans
    308

    Re: allow the process to use a single core processor

    You can use taskset to set the CPU affinity of a process:
    Code:
    $ pidof firefox
    2039
    $ taskset -p -c 2039
    pid 2039's current affinity list: 0,1,2,3
    $ taskset -p -c 0,1 2039
    pid 2039's current affinity list: 0,1,2,3
    pid 2039's new affinity list: 0,1
    This command starts a new Firefox process and runs it on CPU 0:
    Code:
    taskset -c 0 /usr/bin/firefox
    GNU/Linux

  5. #5
    Join Date
    Aug 2011
    Beans
    23

    Re: allow the process to use a single core processor

    brainwash very nice, thanks

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •