Linux - GamesThis forum is for all discussion relating to gaming in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was considering tinkering with Linux again, and was just wondering if anybody can recommend a good guide on optimizing Linux as you would Windows for optimal game performance, as I can't seem to find one on Google. Several things come to mind, like how to set up a swap file, or if one would even be necessary (I have 2GB of DDR400).
I'll probably be playing WoW, so if anybody has anything to offer specifically for that I'd very much appreciate it.
Max your RAM. Then you shouldn't need a swap partition. (Distros won't let you install without one, so you comment it out in /etc/fstab ... note: 2GiB should be fine.)
Usual HW modifications.
Customize the kernel so that the modules you need are compiled in.
I don't see the point in disabling swap. If you have enough RAM that you can do without swap for a given task, then I think the kernel will not use the swap.
Originally posted by Simon Bridge
Distros won't let you install without one
Not always true. I've installed Slackware, SLED10 and Ubuntu Feisty and none *required* a swap partition. They did remind me that I hadn't created one, but they still installed and I still haven't needed one.
With an Athlon 1.2GHz, 1GB SDRAM and a 64MB GeForce2 MX400, I've played Doom3 comfortably without swap. Actually, when I started Doom3 I only had 768MB. I didn't upgrade until I was into the expansion. It only slowed down noticably when swarmed with enemies.
I don't see the point in disabling swap. If you have enough RAM that you can do without swap for a given task, then I think the kernel will not use the swap.
Have you tried it?
Last time I did, admittedly a while ago, I found that I still used a small amount of swap regardless of available RAM.
However, I seem to recall that you can set the way the kernel uses swap someplace but I forget where.
In Simon Bridge's links(that I found quite helpful for optimization) it mentions to be using a swap in a different disk and that will help the efficiency of data read and write. This is a small tip that makes a difference when using many apps together. I use it on both my computers and seen a difference.
using a swap in a different disk and that will help the efficiency of data read and write
...yeah: when I had a slow system I set boot and swap on hda and kept hdb for root. The drive controller dosn't have to reposition the heads to write/read swap. Another trick is to use swap files instead of a whole partition.
However, this is not faster than not using swap at all.
The truth is: RAM is faster than HDD so physical memory is faster than VM. But, how that memory is managed is also important. What makes the choice is the purpose of the box.
A multi-role desktop should probably have some swap (tuned for your needs). In this case, the box is intended to play games. Tuning for low-latency is the key.
I'm just really good at finding stuff. I had a head start, having researched this before, so I knew more likely search terms. Still, googling for "linux game optimization" will net yau some good sites in the first ten.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.