<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Daily Lockups - kswapd &amp; Memory leaks]]></title><description><![CDATA[<p dir="auto">Hi Folks!</p>
<p dir="auto">Wondering if any of you are experiencing the same?   On a regular basis (on average once a day) ... my 3a grinds to an  unusable state: swipes respond after delays of many seconds or even minutes.   I usually just reboot rather than wait the 5 to 10 minutes or so it might take to resolve itself.  Once when it happened, I had ssh running  and was able to see loads of 45 in top.  wa was really high ...  kswapd was at the top of the list of processes.  I recall seeing something about qtwebengine memory leak ... which would build up with my Morph use and its webapps...<br />
Are you other daily users seeing the same?<br />
Thanks!</p>
]]></description><link>https://forums.ubports.com/topic/6366/daily-lockups-kswapd-memory-leaks</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 15:44:50 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/6366.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Jun 2021 17:00:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Sun, 10 Apr 2022 17:09:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fredldotme" aria-label="Profile: fredldotme">@<bdi>fredldotme</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/standupmobile" aria-label="Profile: StandUpMobile">@<bdi>StandUpMobile</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/domubpkm" aria-label="Profile: domubpkm">@<bdi>domubpkm</bdi></a></p>
<p dir="auto">For two days I have been testing this fix on RC and I couldn´t be happier. The daily lockups have gone and the OnePlus 3T is as snappy and smooth like when UT was first installed. Multitasking isn´t a problem either. Only had one freeze, I guess it was just me pushing the device to the limit.</p>
<p dir="auto">Thanks a ton especially to <a class="plugin-mentions-user plugin-mentions-a" href="/user/fredldotme" aria-label="Profile: fredldotme">@<bdi>fredldotme</bdi></a> for making me appreciate my device running UT again as it's supposed to.</p>
]]></description><link>https://forums.ubports.com/post/63592</link><guid isPermaLink="true">https://forums.ubports.com/post/63592</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Sun, 10 Apr 2022 17:09:03 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Sun, 10 Apr 2022 12:20:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fredldotme" aria-label="Profile: fredldotme">@<bdi>fredldotme</bdi></a> Ok. Thank you very much for clarifying this. I am experiencing on the Volla, as already mentioned, problems in multi-tasking. All I can do is to point your remark to the different issues where I mentioned the problem. The rest is out of my knowledge/competence.</p>
<p dir="auto">Opened/probably concerned issues are :<br />
<a href="https://github.com/ubports/morph-browser/issues/495" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ubports/morph-browser/issues/495</a></p>
<p dir="auto"><a href="https://github.com/HelloVolla/ubuntu-touch-beta-tests/issues/101" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/HelloVolla/ubuntu-touch-beta-tests/issues/101</a><br />
if you want to put some of your useful comments inside.</p>
]]></description><link>https://forums.ubports.com/post/63587</link><guid isPermaLink="true">https://forums.ubports.com/post/63587</guid><dc:creator><![CDATA[domubpkm]]></dc:creator><pubDate>Sun, 10 Apr 2022 12:20:42 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Sun, 10 Apr 2022 11:42:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/domubpkm" aria-label="Profile: domubpkm">@<bdi>domubpkm</bdi></a> Well since <em>currently</em> this is a device specific change it doesn't apply as-is to Volla, I actually don't know if that one has a Low Memory Killer activated.</p>
<p dir="auto">In principle each device maintainer needs to make sure that low-memory situations are dealt with properly, one way or another. We currently don't have a unified approach to that.</p>
]]></description><link>https://forums.ubports.com/post/63586</link><guid isPermaLink="true">https://forums.ubports.com/post/63586</guid><dc:creator><![CDATA[fredldotme]]></dc:creator><pubDate>Sun, 10 Apr 2022 11:42:33 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Sat, 09 Apr 2022 19:09:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fredldotme" aria-label="Profile: fredldotme">@<bdi>fredldotme</bdi></a> On which phones does this fix apply? The Volla too ? If yes, on the current RC ? Thanks in advance to clarify.</p>
]]></description><link>https://forums.ubports.com/post/63577</link><guid isPermaLink="true">https://forums.ubports.com/post/63577</guid><dc:creator><![CDATA[domubpkm]]></dc:creator><pubDate>Sat, 09 Apr 2022 19:09:48 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Sat, 09 Apr 2022 18:39:58 GMT]]></title><description><![CDATA[<p dir="auto">The actual fix was this one: <a href="https://github.com/fredldotme/android_kernel_google_bonito/commit/944dd258c369ed224b37a9fa439a64c919ad4f27" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/fredldotme/android_kernel_google_bonito/commit/944dd258c369ed224b37a9fa439a64c919ad4f27</a></p>
]]></description><link>https://forums.ubports.com/post/63576</link><guid isPermaLink="true">https://forums.ubports.com/post/63576</guid><dc:creator><![CDATA[fredldotme]]></dc:creator><pubDate>Sat, 09 Apr 2022 18:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Fri, 08 Apr 2022 10:07:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/standupmobile" aria-label="Profile: standupmobile">@<bdi>standupmobile</bdi></a><br />
Thanks. I followed up on your advice and am now on RC 673 to check if daily lockups have gone and check for lagging in multitasking. Will report back after the weekend.</p>
]]></description><link>https://forums.ubports.com/post/63563</link><guid isPermaLink="true">https://forums.ubports.com/post/63563</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Fri, 08 Apr 2022 10:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 07 Apr 2022 21:28:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/3t_ed" aria-label="Profile: 3t_ed">@<bdi>3t_ed</bdi></a> To elaborate a bit further:  First, Alfred applied those changes to the port.  One OR 2 did not stick properly and rather than chasing down the issue further, he remove zram completely.   So the dev version of p3a is no longer using any swap.  There are no more lockups, but (IMHO) there is a little less bandwidth for multitasking, especially after a few days of uptime (where presumably software memory leaks have chewed into the avail 4GB of ram.  All in all a big improvement ... would be good if some other could test and chime in their thoughts.</p>
<p dir="auto"><a href="https://github.com/fredldotme/android_device_google_bonito/commit/cea569eb00838ad9cb6e16471b69510b0f0e0e47" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/fredldotme/android_device_google_bonito/commit/cea569eb00838ad9cb6e16471b69510b0f0e0e47</a></p>
<p dir="auto"><a href="https://github.com/fredldotme/android_device_google_bonito/commit/f4df3991231cf4f7aab62584a9289a7642b88e9c" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/fredldotme/android_device_google_bonito/commit/f4df3991231cf4f7aab62584a9289a7642b88e9c</a></p>
]]></description><link>https://forums.ubports.com/post/63557</link><guid isPermaLink="true">https://forums.ubports.com/post/63557</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Thu, 07 Apr 2022 21:28:24 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Fri, 01 Apr 2022 02:49:14 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/fredldotme" aria-label="Profile: fredldotme">@<bdi>fredldotme</bdi></a> !<br />
What are the gitlab or github links that fix the problem(s). I don't seem to see this in OTA-23 project anyway.</p>
]]></description><link>https://forums.ubports.com/post/63450</link><guid isPermaLink="true">https://forums.ubports.com/post/63450</guid><dc:creator><![CDATA[domubpkm]]></dc:creator><pubDate>Fri, 01 Apr 2022 02:49:14 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 31 Mar 2022 19:37:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fredldotme" aria-label="Profile: fredldotme">@<bdi>fredldotme</bdi></a><br />
Great! Thank you for letting me know. That's good news so thank you for sorting out this issue. I'm still on stable channel but I assume we'll notice with the next OTA?</p>
]]></description><link>https://forums.ubports.com/post/63446</link><guid isPermaLink="true">https://forums.ubports.com/post/63446</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Thu, 31 Mar 2022 19:37:43 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 31 Mar 2022 17:34:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/3t_ed" aria-label="Profile: 3t_ed">@<bdi>3t_ed</bdi></a> yes, at least we found out what happened with apps locking up everything, while in reality there was no low-memory killer active. I enabled it and it's available in devel or even release candidate already.</p>
]]></description><link>https://forums.ubports.com/post/63444</link><guid isPermaLink="true">https://forums.ubports.com/post/63444</guid><dc:creator><![CDATA[fredldotme]]></dc:creator><pubDate>Thu, 31 Mar 2022 17:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 31 Mar 2022 05:57:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/standupmobile" aria-label="Profile: standupmobile">@<bdi>standupmobile</bdi></a><br />
Is this problem solved? No more freezes?</p>
]]></description><link>https://forums.ubports.com/post/63428</link><guid isPermaLink="true">https://forums.ubports.com/post/63428</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Thu, 31 Mar 2022 05:57:57 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Mon, 04 Oct 2021 16:32:58 GMT]]></title><description><![CDATA[<p dir="auto">So I built a routine that allowed me to reproduce the lockups (where the swap use shown in top (zram)  hits 100%, and memory is 95+% used) - it basically involves opening a bunch of webapps / apps that I use; but all at once in fast sequence.  The camera is one app that needs a bunch of memory ... and can easily push the device over the edge).</p>
<p dir="auto">I then tweaked memory control parameters as per various suggestions found online and repeated the test.  I was able to get a lot further before lockup with the settings below.  (The phone uses less zram as I progress through my test, I guess ultimately pushing back the time to lockup).   I haven't noticed any performance hit (purely subjective), and I can run many days now without lockup.  On the one occasion where I did lockup, recovery was faster (rather than 1-3 mins, it was ~10 seconds)l; however I did notice one of my open apps was killed (white page with green triangle saying refresh).  Haven't figured out how to set this across boots -  although my reboots are a lot less frequent!</p>
<p dir="auto">Disclaimer:  This is for the pixel3a - that has 4GB of RAM and ~ 1.6GB zram setup.  Based on my reading, I think some of these settings are very specific towards hardware (memory, cpu, swap vs. zram) on the device... also, I am a hack wrt linux and have NO other experience with these settings:)</p>
<p dir="auto">sudo sysctl vm.min_free_kbytes=29620  &amp;&amp;<br />
sudo sysctl vm.vfs_cache_pressure=200 &amp;&amp;<br />
sudo sysctl vm.dirty_background_ratio=3 &amp;&amp;<br />
sudo sysctl vm.dirty_ratio=40 &amp;&amp;<br />
sudo sysctl vm.admin_reserve_kbytes=16384 &amp;&amp;<br />
sudo sysctl vm.swappiness=80</p>
<p dir="auto">Hope this helps ...</p>
]]></description><link>https://forums.ubports.com/post/56067</link><guid isPermaLink="true">https://forums.ubports.com/post/56067</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Mon, 04 Oct 2021 16:32:58 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Wed, 29 Sep 2021 15:45:30 GMT]]></title><description><![CDATA[<p dir="auto">So turns out the swap showing on our Pixel3's is ZRam (Fake swap on memory that is compressed).  The 100 setting is appropriate for this setup.  Will keep digging around for some way to prevent 100% use ... (which is the source of my lockups).</p>
]]></description><link>https://forums.ubports.com/post/55782</link><guid isPermaLink="true">https://forums.ubports.com/post/55782</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Wed, 29 Sep 2021 15:45:30 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Tue, 28 Sep 2021 17:04:29 GMT]]></title><description><![CDATA[<p dir="auto">A bit too quick to declare success ... I locked up with 100% swap usage again today while my swappiness was set to 20.  Still think it is a beneficial change for the life of the emmc ... however, issue persists.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/domubpkm" aria-label="Profile: domubpkm">@<bdi>domubpkm</bdi></a>  ... Not sure yet how to persist this across reboots ... going to reach out to porters to see where this setting is established.</p>
]]></description><link>https://forums.ubports.com/post/55738</link><guid isPermaLink="true">https://forums.ubports.com/post/55738</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Tue, 28 Sep 2021 17:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Tue, 28 Sep 2021 08:04:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/standupmobile" aria-label="Profile: standupmobile">@<bdi>standupmobile</bdi></a> said in <a href="/post/55707">Daily Lockups - kswapd &amp; Memory leaks</a>:</p>
<blockquote>
<p dir="auto">sudo mount -o remount,rw /<br />
sudo sysctl vm.swappiness=20</p>
</blockquote>
<p dir="auto">On the Volla the value 20 does not survive a reboot. vm.swappiness returns to its default value of 60.</p>
]]></description><link>https://forums.ubports.com/post/55719</link><guid isPermaLink="true">https://forums.ubports.com/post/55719</guid><dc:creator><![CDATA[domubpkm]]></dc:creator><pubDate>Tue, 28 Sep 2021 08:04:56 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Mon, 27 Sep 2021 22:08:35 GMT]]></title><description><![CDATA[<p dir="auto">One further update:</p>
<p dir="auto">sudo cat /proc/sys/vm/swappiness returns 100 ...</p>
<p dir="auto">Is this parameter used in UT?  If so, that doesn't make sense.</p>
<p dir="auto"><em>The default value of vm.swappiness is 60 and represents the percentage of the free memory before activating swap. The lower the value, the less swapping is used and the more memory pages are kept in physical memory.</em></p>
<p dir="auto">I set mine to 20 ... and my test of opening a ton of webapps starts using swap much later.... and I haven't hit lockup yet.  Not sure how to persist it though...</p>
<p dir="auto">sudo mount -o remount,rw /<br />
sudo sysctl vm.swappiness=20</p>
]]></description><link>https://forums.ubports.com/post/55707</link><guid isPermaLink="true">https://forums.ubports.com/post/55707</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Mon, 27 Sep 2021 22:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Mon, 27 Sep 2021 22:00:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/3t_ed" aria-label="Profile: 3t_ed">@<bdi>3t_ed</bdi></a> If you enable USB debugging, next time it happens, you can plug into a computer (with adb tools) and run adb shell.  This will bring up a terminal:  run "Top" then hit  "m" twice to see memory and swap % use.</p>
]]></description><link>https://forums.ubports.com/post/55705</link><guid isPermaLink="true">https://forums.ubports.com/post/55705</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Mon, 27 Sep 2021 22:00:25 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Sat, 25 Sep 2021 13:08:36 GMT]]></title><description><![CDATA[<p dir="auto">I have had exactly the same issues for quite some time using OnePlus 3T, even <em>before</em> using Webber app. As it seems it's not limited to a specific device or brand. The 'lock-ups' occur like 3-4 times a day.</p>
<p dir="auto">I can't figure out what causes it either, not with 100% certainty anyways.</p>
<p dir="auto">If I would only know how to capture it I would be happy to contribute to get this matter solved.</p>
]]></description><link>https://forums.ubports.com/post/55582</link><guid isPermaLink="true">https://forums.ubports.com/post/55582</guid><dc:creator><![CDATA[3T_Ed]]></dc:creator><pubDate>Sat, 25 Sep 2021 13:08:36 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Sat, 25 Sep 2021 03:17:19 GMT]]></title><description><![CDATA[<p dir="auto">Same with N6P leading to hard lock up or it reboots. Have not noticed anything on Pixel2 XL.</p>
]]></description><link>https://forums.ubports.com/post/55551</link><guid isPermaLink="true">https://forums.ubports.com/post/55551</guid><dc:creator><![CDATA[rocket2nfinity]]></dc:creator><pubDate>Sat, 25 Sep 2021 03:17:19 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 23 Sep 2021 20:59:14 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/flohack" aria-label="Profile: flohack">@<bdi>flohack</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/kugiigi" aria-label="Profile: kugiigi">@<bdi>kugiigi</bdi></a> ...</p>
<p dir="auto">I use a lot of webapps created with Webber (News sites) ... Quick test shows they jump memory/swap up in increments by 4-8% (just opening them) ... From a fresh boot, opening 5 news webapps, Morph, Telegram and Axotl brought it up to ~ 85% Swap; ... then I switched to closing them (upswipe) to see if swap and memory got freed up, which it did - but not all the way back down.  I suspect (and will test) that if I had left them open and come back to them later to keep reading, I would max out and lockup.</p>
<p dir="auto">None of my apps get closed at any point due to the lack of memory ... The phone just becomes very slow (eg: swipe responds after 30 seconds) ... If  I leave it for 5 minutes, It resolves itself (at least for a little while), but I typical reboot to get back to the snappy smooth 3a experience.</p>
<p dir="auto">I would happily rid it of the swap partition if you felt it would be better ... I gather the installer just set it up that way as a standard.</p>
<p dir="auto">Let me know if I can test out and report anything to help ID and pin down what might be the cause!</p>
]]></description><link>https://forums.ubports.com/post/55506</link><guid isPermaLink="true">https://forums.ubports.com/post/55506</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Thu, 23 Sep 2021 20:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 23 Sep 2021 19:03:05 GMT]]></title><description><![CDATA[<p dir="auto">I've been using a Pixel 3a for the past days and so far I haven't encountered any slow downs. In fact, this js the best experience I have with UT. I can open a lot of apps simultaneously and I haven't seen app closed due to lack of memory. I also don't encounter my problem with crashing webviews. It's a fresh install and I didn't restore any data or app data from other UT device. I only use TELEports, Morph and Pesbuk most of the time. I've been trying out Waydroid in the past days too and even with that, I don't see slow downs. The only thing that made it really unresponsive was Genshing Impact <img src="https://forums.ubports.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=aee68f5cf05" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title="😄" alt="😄" /> I'm on devel BTW.</p>
]]></description><link>https://forums.ubports.com/post/55503</link><guid isPermaLink="true">https://forums.ubports.com/post/55503</guid><dc:creator><![CDATA[kugiigi]]></dc:creator><pubDate>Thu, 23 Sep 2021 19:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 23 Sep 2021 18:15:17 GMT]]></title><description><![CDATA[<p dir="auto">But basically I have the same problem on N6P, resulting in loss of modem connectivity. Mostly happens when I open the camera or other intense operations like starting GPS. Its never a problem after iniital boot, only after a day or 2.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/fredldotme" aria-label="Profile: fredldotme">@<bdi>fredldotme</bdi></a> could it be that there is still a process (maybe visible in logcat) that is unhappy and maybe just filling internal memory with error messages. My Nexus 6P for example has one process thats a bit spammy in logcat.</p>
]]></description><link>https://forums.ubports.com/post/55500</link><guid isPermaLink="true">https://forums.ubports.com/post/55500</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Thu, 23 Sep 2021 18:15:17 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 23 Sep 2021 18:13:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/standupmobile" aria-label="Profile: standupmobile">@<bdi>standupmobile</bdi></a> In general you dont want to use any swap at all on a devices backed by flash memory since it will wear out the flash card. So, swap should be as little as possible, and frankly, 4GB must be more than enough for a mobile device.</p>
<p dir="auto">Memory leaks: I had such supicion but interestingly is this maybe device-dependent. It could be that our truncation of Android services lets a process continually eat through memory. I had same experience on the Nexus 6P, also a Google device. But so far on no other device.</p>
<p dir="auto">Getting memleaks caught is one of the most challenging problems on a mobile device like a smartphone since every run of the OS will lead to different mem usage patterns.</p>
]]></description><link>https://forums.ubports.com/post/55499</link><guid isPermaLink="true">https://forums.ubports.com/post/55499</guid><dc:creator><![CDATA[flohack]]></dc:creator><pubDate>Thu, 23 Sep 2021 18:13:39 GMT</pubDate></item><item><title><![CDATA[Reply to Daily Lockups - kswapd &amp; Memory leaks on Thu, 23 Sep 2021 17:09:38 GMT]]></title><description><![CDATA[<p dir="auto">The QA update did not solve the problem.  I backed out from Dev to RC ... hoping maybe OTA 19 might have fixed something, but it does not.  I confirmed that the lockup/slowdown happens once SWAP hits 100% usage (and obviously, since we are using swap, memory use is already very high around ~95%).   Shouldn't the system be freeing up swap/memory <em>before</em> it hits 100%?</p>
<p dir="auto">Could we change the "swappiness" parameter ... or adjust the amount of SWAP (on my pixel 3a) SWAP is set to 1.57GB ... about 40% of system memory.  I remember rule of thumb on servers back in the day is to give them the same amount of swap as they have memory.  Could this be the issue?</p>
]]></description><link>https://forums.ubports.com/post/55498</link><guid isPermaLink="true">https://forums.ubports.com/post/55498</guid><dc:creator><![CDATA[StandUpMobile]]></dc:creator><pubDate>Thu, 23 Sep 2021 17:09:38 GMT</pubDate></item></channel></rss>