Results 1 to 2 of 2

Thread: taskset and Heroes of Newerth...

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Beans
    76

    taskset and Heroes of Newerth...

    Hello All,

    So recently I discovered that you can control which processor a certain thread has an affinity for through taskset. At least, I'm assuming it's a thread, right?

    Either way, I have the game Heroes of Newerth and when you install it, it generates the executable binary hon-x86_64.

    So at the terminal, I'll type:

    Code:
    tasket -c 3 ./hon-x86_64
    and when I run

    Code:
    taskset -p <HoN's PID here>
    I get that the affinity is for core 1, the 2nd core, and not the 4th. I can use

    Code:
    tasket -p 03 <HoN's PID here>
    and then it'll finally be on the 4th core and stay there. But my question is, why does my initial taskset command not work? If I leave out the "./", it'll tell me there's no such file of directory as hon-x86_64 so it seems like I HAVE to execute it with taskset.

  2. #2
    Join Date
    Jul 2011
    Beans
    76

    Re: taskset and Heroes of Newerth...

    So I've checked around I've heard it might have something to do with the scheduler. As in, I think what I'm actually doing is launching HoN on the 4th core but afterwards, the scheduler just treats it like a normal application and distributes it as it was natively coded to do so, namely putting a higher priority on the 2nd core to make things easier for the 1st which, using htop, is the one that is most heavily taxed by everything else that isn't HoN.

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
  •