<style>@font-face{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}</style><font face="Calibri"><p dir=ltr></p>
<p dir=ltr>Am 3. Mai 2015, um 16:39, schrieb "E.S. Rosenberg" <es.rosenberg+sailfishos.org@gmail.com>:</p>
<p dir=ltr>><br>
><br>
>Well for one thing you have the extremely RAM hungry Android environment which they didn't have...</p>
<p dir=ltr><span style="color: #1f497d;">On</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">the</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">other</span><span style="color: #1f497d;"> hand, </span><span style="color: #1f497d;">the</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">N900</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">and</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">N9</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">could</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">have</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">become</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">pretty</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">unresponsive</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">while</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">swapping</span><span style="color: #1f497d;">, </span><span style="color: #1f497d;">up</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">to</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">the</span><span style="color: #1f497d;"> point </span><span style="color: #1f497d;">that</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">you</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">were</span><span style="color: #1f497d;"> not </span><span style="color: #1f497d;">able</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">to</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">answer</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">the</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">ringing</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">phone</span><span style="color: #1f497d;"> in </span><span style="color: #1f497d;">time</span><span style="color: #1f497d;">.</span><br>
<span style="color: #1f497d;">So </span><span style="color: #1f497d;">the</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">way</span><span style="color: #1f497d;"> Maemo </span><span style="color: #1f497d;">and</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">Harmattan</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">did</span><span style="color: #1f497d;"> it </span><span style="color: #1f497d;">with</span><span style="color: #1f497d;"> a crazy </span><span style="color: #1f497d;">amount</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">of</span><span style="color: #1f497d;"> </span><span style="color: #1f497d;">swapping</span><span style="color: #1f497d;"> was </span><span style="color: #1f497d;">certainly</span><span style="color: #1f497d;"> not </span><span style="color: #1f497d;">better</span><span style="color: #1f497d;">.</span><br></p>
<p dir=ltr><span style="color: #1f497d;">Martin</span><br></p>
<p dir=ltr>><br>
>2015-05-03 17:16 GMT+03:00 Taixzo <taixzo@gmail.com>:<br>
>I wonder why Sailfish OS does this while Harmattan and Maemo did not? They certainly didn't have more RAM to work with.<br>
><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 <martin.grimme@gmail.com>:<br>
>><br>
>>> Hi,<br>
>>><br>
>>> 2015-05-03 13:09 GMT+02:00, Andrey Kozhevnikov <coderusinbox@gmail.com>:<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>
>>> devel-unsubscribe@lists.sailfishos.org<br>
>>><br>
>> _______________________________________________<br>
>> SailfishOS.org Devel mailing list<br>
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfishos.org<br>
><br>
>--<br>
>Sent from Whiteout Mail - https://whiteout.io<br>
>My PGP key: https://keys.whiteout.io/taixzo@gmail.com<br>
><br>
>_______________________________________________<br>
>SailfishOS.org Devel mailing list<br>
>To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfishos.org<br>
><br>
</p>
</font>