x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How can I set an upper-limit to dedicated server CPU usage?

We're running multiple UE4 4.15 dedicated servers on one box, but if one of those servers hogs all the CPU, the other servers suffer from degraded performance.

Is there a way to deploy a dedicated server, and set it's max CPU use to half a CPU core, for eg?

Product Version: UE 4.15
Tags:
more ▼

asked Oct 06 '18 at 12:27 AM in Packaging & Deployment

avatar image

deanrather
1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I don't think so, it is something that OS scheduler need to support as it is OS that decides when and where each thread runs on CPU. In windows for example you can set priority as well as affinity (on which cores application is limited to run), there is possibility to set those in C++, you might lurk in to FPlatform (on breath look i can't find anything related to that):

https://api.unrealengine.com/INT/API/Runtime/Core/GenericPlatform/index.html

if you not find anything you need to use system APIs of platfrom you running..... but usally you don't need to do this because this is something that OS can be configured to do and user have option to set it up, like in windows task manager.

more ▼

answered Oct 06 '18 at 03:32 AM

avatar image

Shadowriver
37.8k 937 172 1123

avatar image deanrather Oct 07 '18 at 01:59 AM

Thanks. We're using supervisor on linux at the moment, considering using the cpulimit util to throttle the servers... Was wondering if there was some more internal way :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question