c48f cpuset for 5.3 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Development > FreeBSD Development

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

Reply
 
Thread Tools Display Modes
  #1  
Old April 27th, 2010, 20:28
coleb coleb is offline
Junior Member
 
Join Date: Apr 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default cpuset for 5.3

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
Reply With Quote
  #2  
Old April 27th, 2010, 20:52
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,530
Thanks: 424
Thanked 612 Times in 479 Posts
Default

Install FreeBSD-8
Reply With Quote
  #3  
Old April 27th, 2010, 21:57
coleb coleb is offline
Junior Member
 
Join Date: Apr 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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

~billy
Reply With Quote
  #4  
Old April 27th, 2010, 23:01
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,932
Thanks: 30
Thanked 1,926 Times in 1,351 Posts
Default

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).
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Administrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #5  
Old April 28th, 2010, 13:14
coleb coleb is offline
Junior Member
 
Join Date: Apr 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #6  
Old April 28th, 2010, 14:29
foldingstock foldingstock is offline
Junior Member
 
Join Date: Nov 2008
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
Reply With Quote
The Following User Says Thank You to foldingstock For This Useful Post:
coleb (April 28th, 2010)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] cpuset For all processes PLEASE HELP DigiSoft General 13 October 17th, 2012 23:20


All times are GMT +1. The time now is 13:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0