1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cpuset for 5.3

Discussion in 'FreeBSD Development' started by coleb, Apr 27, 2010.

  1. coleb

    coleb New Member

    Messages:
    10
    Thanks Received:
    0
    Hi All,

    I'm looking for functionality similar to "cpuset" but for FreeBSD 5.3. I want to lock a given process to a specific core or specific cores. I wouldn't be opposed to minor patching/kernel tweaking/rebuilding/whatever if needed. Just not sure what the available options are. Thank for any input on this.

    ~billy
     
  2. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
    Install FreeBSD-8 :D
     
  3. coleb

    coleb New Member

    Messages:
    10
    Thanks Received:
    0
    Thanks, but that's not an option at this point.

    ~billy
     
  4. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,767
    Thanks Received:
    1,872
    You can't expect 'minor kernel patching' when the kernel source code is two major versions behind the one that first featured (the entire family of system calls associated with) cpuset(2) (7.1).
     
  5. coleb

    coleb New Member

    Messages:
    10
    Thanks Received:
    0
    Uhh.. yeah, I know that. I don't believe I implied that I thought moving up to 7.1 was my option. I'm asking for other possible solutions - "similiar to cpuset but for FreeBSD 5.3."

    ~billy
     
  6. foldingstock

    foldingstock New Member

    Messages:
    30
    Thanks Received:
    2
    coleb, you might be able to run the process from a jail, and limit the CPU shares for the jail.

    This is a little on the 'hack' side, but it may work.

    Upgrading to a newer version of FreeBSD would probably be your best option overall, though.
     
    coleb thanks for this.