[Linux] Bad memory problem when idle

YSFlight general discussion & everything in between
Post Reply
User avatar
acf492
Contributor
Contributor
Posts: 139
Joined: Sat Sep 10, 2011 4:18 am
Favorite Aircraft: 737
Location: Toronto, Ontario
OS: Linux
Has thanked: 9 times
Been thanked: 7 times
Contact:

[Linux] Bad memory problem when idle

Post by acf492 » Wed Sep 05, 2018 6:47 pm

This is a warning to Linux users. I planned to make a posting with a full list of issues with the Linux version, but I'm going ahead with this particular problem now as it is bad, by that I mean you can lose unsaved work.

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.
I'm back.

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3737
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1527 times
Been thanked: 1651 times
Contact:

Re: [Linux] Bad memory problem when idle

Post by Neocon » Thu Sep 06, 2018 4:13 am

I would also like to point out that if you remain logged into my server for hours without activity, it starts to drain my resources.

User avatar
acf492
Contributor
Contributor
Posts: 139
Joined: Sat Sep 10, 2011 4:18 am
Favorite Aircraft: 737
Location: Toronto, Ontario
OS: Linux
Has thanked: 9 times
Been thanked: 7 times
Contact:

Re: [Linux] Bad memory problem when idle

Post by acf492 » Thu Sep 13, 2018 9:43 am

Neocon wrote:
Thu Sep 06, 2018 4:13 am
I would also like to point out that if you remain logged into my server for hours without activity, it starts to drain my resources.
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.
I'm back.

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3737
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1527 times
Been thanked: 1651 times
Contact:

Re: [Linux] Bad memory problem when idle

Post by Neocon » Thu Sep 13, 2018 8:49 pm

I use the OpenYS server, so there are a lot of differences.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests