{"action":"created","issue":{"url":"https://api.github.com/repos/dgibbs64/linuxgsm/issues/663","repository_url":"https://api.github.com/repos/dgibbs64/linuxgsm","labels_url":"https://api.github.com/repos/dgibbs64/linuxgsm/issues/663/labels{/name}","comments_url":"https://api.github.com/repos/dgibbs64/linuxgsm/issues/663/comments","events_url":"https://api.github.com/repos/dgibbs64/linuxgsm/issues/663/events","html_url":"https://github.com/dgibbs64/linuxgsm/issues/663","id":130088120,"number":663,"title":"Feature request: ability to set CPU affinity from the start.","user":{"login":"dynamittt","id":16740798,"avatar_url":"https://avatars.githubusercontent.com/u/16740798?v=3","gravatar_id":"","url":"https://api.github.com/users/dynamittt","html_url":"https://github.com/dynamittt","followers_url":"https://api.github.com/users/dynamittt/followers","following_url":"https://api.github.com/users/dynamittt/following{/other_user}","gists_url":"https://api.github.com/users/dynamittt/gists{/gist_id}","starred_url":"https://api.github.com/users/dynamittt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynamittt/subscriptions","organizations_url":"https://api.github.com/users/dynamittt/orgs","repos_url":"https://api.github.com/users/dynamittt/repos","events_url":"https://api.github.com/users/dynamittt/events{/privacy}","received_events_url":"https://api.github.com/users/dynamittt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dgibbs64/linuxgsm/labels/feature","name":"feature","color":"91CA55"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-31T06:00:49Z","updated_at":"2016-02-03T20:28:05Z","closed_at":null,"body":"Hello. Will it be possible to add CPU affinity setting to the script, so that one can choose the CPU cores to be used on a certain gameserver? Will be very useful.\r\nI would also like to ask if anyone knows how one can force all other processes (OS related processes and other tasks unrelated to the server itself) to a specific core.\r\nWhat I am trying to do is set the gameserver to a specific core(s) and everything else to another core(s).\r\nThank you very much in advance."},"comment":{"url":"https://api.github.com/repos/dgibbs64/linuxgsm/issues/comments/179445470","html_url":"https://github.com/dgibbs64/linuxgsm/issues/663#issuecomment-179445470","issue_url":"https://api.github.com/repos/dgibbs64/linuxgsm/issues/663","id":179445470,"user":{"login":"UltimateByte","id":8805941,"avatar_url":"https://avatars.githubusercontent.com/u/8805941?v=3","gravatar_id":"","url":"https://api.github.com/users/UltimateByte","html_url":"https://github.com/UltimateByte","followers_url":"https://api.github.com/users/UltimateByte/followers","following_url":"https://api.github.com/users/UltimateByte/following{/other_user}","gists_url":"https://api.github.com/users/UltimateByte/gists{/gist_id}","starred_url":"https://api.github.com/users/UltimateByte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UltimateByte/subscriptions","organizations_url":"https://api.github.com/users/UltimateByte/orgs","repos_url":"https://api.github.com/users/UltimateByte/repos","events_url":"https://api.github.com/users/UltimateByte/events{/privacy}","received_events_url":"https://api.github.com/users/UltimateByte/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T20:28:05Z","updated_at":"2016-02-03T20:28:05Z","body":"Not supporting multiple core, means it will use the power of 1 core maximum... Not that it won't start with a multiple core server. Days when you had to assign a process to one core to get better performances are quite far away to me... I think it's pointless, whatever the amount of cores you have, until proven wrong.\r\nYou'd better let resource balance make its job.\r\nLet me explain : \r\n\r\nLet's assume you have a 2 core machine (VPS ?! What server is dual core these days ?)\r\nIf a core is only assigned to one game server and, not any other process can use this core (let's say it's possible, even if i think it would be a real pain to setup), then if you're using 20% of that core with your game server, and other processes need 1 and a half cores, other processes will be slowed down. I see your point, where core 0 would be the game server, and core 1 would be other processes... So other processes would never affect the game... But if other processes reach your whole remaining core, you either have a not powerful machine enough, or would better let those processes using remaining power in core 0. \r\nA good server is a well balanced one, on which complete CPU saturation doesn't occur, ever, so this feature would be a patch for bad admins or not powerful enough servers according to the use you make. \r\n\r\nI think it would be a worthless effort work on this until proven wrong, until somebody gives a practical use that actually has more benefits than downsides. "}}