<div dir="ltr">Well for one thing you have the extremely RAM hungry Android environment which they didn't have...<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-03 17:16 GMT+03:00 Taixzo <span dir="ltr"><<a href="mailto:taixzo@gmail.com" target="_blank">taixzo@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I wonder why Sailfish OS does this while Harmattan and Maemo did not? They certainly didn't have more RAM to work with.<br>
<div class="HOEnZb"><div class="h5"><br>
Sunday, May 3, 2015 7:56 AM E.S. Rosenberg wrote:<br>
> Also note that if you skew it too much in favor of yourself the system may<br>
> end up killing genuinely important system processes instead of your daemon,<br>
> no user will be happy about that....<br>
><br>
> 2015-05-03 14:43 GMT+03:00 Martin Grimme <<a href="mailto:martin.grimme@gmail.com">martin.grimme@gmail.com</a>>:<br>
><br>
>> Hi,<br>
>><br>
>> 2015-05-03 13:09 GMT+02:00, Andrey Kozhevnikov <<a href="mailto:coderusinbox@gmail.com">coderusinbox@gmail.com</a>>:<br>
>>> afaik it only closing propcesses with windows, no?<br>
>><br>
>> No, it is the Linux OOM handler, which does not care or know about<br>
>> what a Wayland window is.<br>
>> If your daemon is invoked as a systemd service, you can adjust the<br>
>> OOMScore in the system .service file of the daemon, like this:<br>
>><br>
>>   [Service]<br>
>>   ExecStart=/usr/sbin/mydaemon<br>
>>   OOMScoreAdjust=-250<br>
>><br>
>> The lower the value the less likely the process will be selected by<br>
>> the OOM killer.<br>
>> However, if you want to remain harbour-compatible, you cannot run the<br>
>> daemon as a systemd service. In that case maybe you can write the<br>
>> score directly at runtime to<br>
>><br>
>>   /proc/<your process pid>/oom_score_adj<br>
>><br>
>> but I did not test that solution.<br>
>><br>
>><br>
>> Martin<br>
>> _______________________________________________<br>
>> SailfishOS.org Devel mailing list<br>
>> To unsubscribe, please send a mail to<br>
>> <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
>><br>
> _______________________________________________<br>
> SailfishOS.org Devel mailing list<br>
> To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">--<br>
Sent from Whiteout Mail - <a href="https://whiteout.io" target="_blank">https://whiteout.io</a><br>
<br>
My PGP key: <a href="https://keys.whiteout.io/taixzo@gmail.com" target="_blank">https://keys.whiteout.io/taixzo@gmail.com</a></div></div><br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br></div>