[Linux] Bad memory problem when idle
- acf492
- Contributor
- Posts: 150
- Joined: Sat Sep 10, 2011 4:18 am
- Favorite Aircraft: 737
- Location: Toronto, Ontario
- OS: Linux
- Has thanked: 14 times
- Been thanked: 13 times
- Contact:
[Linux] Bad memory problem when idle
I have observed that only when sitting idle at the main menu, YSFlight 20150425 (the 64-bit GL-1.0 edition, probably the others) will continuously use up more and more memory, at the astonishing rate of 1MB/sec.
Because of the ability to allocate more unused memory blocks than actually exist on the system, there is an Out-Of-Memory (OOM) killer which will start to terminate programs at random in the rare case that more memory needs to be used than the total available.
I noticed this because my web browsing started becoming incredibly slow, and hard drive activity was continuous. I found that YSFlight had reached 19.5GB of requested memory space and my poor web browser was being subjected to swap allocation... (my PC has 16GB RAM with 16GB swap space) I closed YSFlight and everything got back to normal. But this could have been worse if I was AFK and had unsaved work in a word processor for example, as the OOM killer might have randomly killed it without warning.
The simplest prevention is to just close YSFlight immediately after using it, so it doesn't have a chance to fill all your memory. I will definitely include this in a submission of bug reports for the Linux version when I have the time, and will follow-up in this thread to let you know I reported it.
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
Re: [Linux] Bad memory problem when idle
- acf492
- Contributor
- Posts: 150
- Joined: Sat Sep 10, 2011 4:18 am
- Favorite Aircraft: 737
- Location: Toronto, Ontario
- OS: Linux
- Has thanked: 14 times
- Been thanked: 13 times
- Contact:
Re: [Linux] Bad memory problem when idle
Are you running a Linux version of the server? Does the "Free memory when possible" option help? I haven't seen any problems with my Showcase server, but maybe I'll disable the 3hr restart and test that out.
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
Re: [Linux] Bad memory problem when idle
Who is online
Users browsing this forum: No registered users and 7 guests