cpuset for 5.3

Kernel development, writing drivers, coding, and questions regarding FreeBSD internals.

cpuset for 5.3

Postby coleb » 27 Apr 2010, 19:28

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
coleb
Junior Member
 
Posts: 10
Joined: 05 Apr 2010, 18:55

Postby graudeejs » 27 Apr 2010, 19:52

Install FreeBSD-8 :D
User avatar
graudeejs
Style(9) Addict
 
Posts: 4591
Joined: 16 Nov 2008, 23:23
Location: Riga, Latvia

Postby coleb » 27 Apr 2010, 20:57

Thanks, but that's not an option at this point.

~billy
coleb
Junior Member
 
Posts: 10
Joined: 05 Apr 2010, 18:55

Postby DutchDaemon » 27 Apr 2010, 22:01

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) [man=2]cpuset[/man] (7.1).
User avatar
DutchDaemon
Old Fart
 
Posts: 10464
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby coleb » 28 Apr 2010, 12:14

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
coleb
Junior Member
 
Posts: 10
Joined: 05 Apr 2010, 18:55

Postby foldingstock » 28 Apr 2010, 13:29

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.
foldingstock
Junior Member
 
Posts: 30
Joined: 17 Nov 2008, 17:12


Return to FreeBSD Development

Who is online

Users browsing this forum: No registered users and 0 guests