Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

Advanced usage of CPU's and Memory



Hello Funtoo Community!


I have subscribed to an 'large' Funtoo container, and i have some questions about CPU and Memory allocation for certain applications.

I'm planning to run a couple of game Servers in the container and i would like to know if there is any way to force certain applications use only one exact group (node) of CPU cores?

So i would like to allocate 8 cores per 1 application. (there will be 2-3 applications)


The second question is about RAM and tmpfs. Can i make an tmpfs boot persistant?

I would like to load some server data (ca. 1GB) completely in tmpfs for faster I/O.

If no, can i use an script to load data on startup in tmpfs, and move data back if SIGTERM/SIGKILL catched, replicating changes every 'n' minutes?


Sorry for my English.

Thank you!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

this could be ideal to setup a nested lxd inside the container where you could set the cpu allocations.

tmpfs yes this can be done for example:

  raw.lxc: lxc.mount.entry = none mountpoint tmpfs rw,nosuid,nodev,create=dir

let me know if you need any help with this. can pm me. or find me at IRC as palica or palica[m]


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...