Is there a kernel with swp/swap support? - Google Pixel 2 XL Questions & Answers

For more info on swap memory, check this article.
I know swap memory shouldn't be necessary on Android, as we already have ZRAM, however, that still takes up RAM space and we only have 4GB at our disposal.
Plus, 512MB of ZRAM is not that much, even if it's compressed.
I use a lot of apps. Most of them don't run in the background, so that's fine. However, the one time they do run is just after a reboot. Then they all fire almost at the same time because they have on-boot listeners and this clogs up my ZRAM and RAM completely causing everything to crash up to System UI.
When System UI resets after a while, all the apps get the on-boot command again and it repeats... The only solution I have right now is using System Monitor 2 to stop the processes continuously for a minute or so, until all the apps have gotten their on-boot command and the phone runs normally.
I've tried the background check and battery savings settings for those apps, but they still run on boot :/ I also looked at some apps that could block apps from starting on boot, but they all seemed a few years old, back from when phones still had 1GB of RAM.
So, as SWAP helped my laptop from crashing every time my RAM filled up, I thought it would help my phone as well!
The stock kernel however doesn't seem to support swap (which I checked with "su cat /proc/cpuinfo" as described in the article).
Next I tried ElementalX which also doesn't seem to support it.
Any other kernels I should try?

I'm not sure about Kernels with swap support but I use an app called SD Maid to turn off apps run at boot command. That app is constantly updated and does the job well.

How do you do that exactly? In appControl I can see which apps run at boot and I can uninstall or freeze the app, but not disable it booting as far as I can see

It's under app controls receiver manager. You can turn off start at boot and any other services it has.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Yess got it! Thanks! Let's test if that can solve my problem. I'm still curious towards a swap enabled kernel though, also for other reasons

Hmm for some reason all apps still wake after the boot is finished, even though I blocked them all with SDMaid. Really odd...

That is odd. SD Maid has worked really well for me. I don't know if it makes any difference but I'm using the Pro version. I've had it so long I can't remember what the difference between the free and pro versions are

I'm also using pro, so that's the same. But yeah, when booting I notice apps like AliExpress still starting when I disabled its boot receiver with sdmaid and even blocked it from running in the background in two places of the Android settings (battery saving and background check)

Related

DirectoryBind works on Note II, Get more space for your stuff!!

It's no apps2sd, but it works for now with some draw backs. Honestly I'm looking forwards to getting the Apps2ExtSD2 working on these things. Seems a bit more stable and less confusing. I'll explain the confusing part in a sec...
Anyway, you can get the app and read all about it here: http://forum.xda-developers.com/showthread.php?t=1410262 and major thanks to slig for this! Send him some thanks as well if you like this!
Next, follow this guide, kindly written by bala_gamer for the S3; http://forum.xda-developers.com/showthread.php?t=1889550
It basically tells you how to set the directories correctly so that it works with our phones and how to get started in setting up the directories.
I recommend moving the Android folder, the gameloft folder, and any other large directories, such as CoPilot maps.
Proof that it works...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you do the math there... I have 10.95gb total and 8.14gb free meaning I'm only using 2.81gb of the internal storage... yet when you add up the applications and misc files you get a whopping 10.56gb. And as you can see, i've got some rather large games installed:
So far the phone hasn't given me any errors about being out of space. And note, my SD card says I'm using 18.28gb. I do have a few gb worth of music and misc files on it along with everything else. Oh, and the scandisk 64gb extreme card works perfectly in this phone, even when formatted to exFAT.
So far the one draw back I've found is that large games slow down a bit on the loading. For example, Nova3 starts up in a few minute vs <1 before this. I'm assuming this is attributed to the fact that while it's an "extreme" card, its still not as fast as the built in, plus there's probably a small lag due to the directory binding.
All my games still work like normal from what I can tell. Haven't tried every single one of them yet. But Nova3, and CoPilot work as if nothings changed (minus what I just mentioned about the slowness).
Now... the confusing part... so technically you do not have to pick the option to unbind when connected to usb. You can still browse the external and internal memory on your computer. BUT, while the space will show accurately, the folders will not. For example, if I goto /extsdcard/dirctorybinder/Android/ it only shows a few config files. If I goto /storage/Android/ it shows all the game files and says its 6gb+ in size.
You can avoid that by click the "handle usb connection". Then everything shows like it should. but this may cause a few issues if any apps are running that use a directory you moved. You could take the time and set each one up, one by one for only the large games that you need to move and know you wont normally use while plugged into the computer.
Hope this helps people who were suffering from the small storage space problem on these phones!

Problem- Please Help Me with killing Apps

I have an issye with my HOX. My phone have started getting hung a lot of time.. i mean the phone is working so slow. Then one of my friend adviced me to instal a ram booster. Effectivly it worked well. I created a whitelist of apps not to be killed. Everything is just good. But i kinda have a trouble now.
My problem is that soon after i boost my ram,the set of apps again start on. I mean all the apps which i killed,thwy start in process in just next second after i killed them. Now can anyone help me by guiding me the most suitable solution for my issues.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now i want to set thses apps which is ticked in the picture not to start in process on its own.
Can anyone guide me for the above problem. Like nfcservice,calender storage,whatsapp,bluetooth and all other unnecessary apps.these apps are just using my ram memory and kinda making my phone not work with itz real efficency. So please provide me a solution.
Sent from my HTC One X using xda premium
Free ram is wasted ram.
Sent from my faster than SGS3 HOX.
Yeah, if you read about android memory management you don't really need to worry about free RAM... Android will manage everything for you. Just stop manually killing apps.
nikz.kothari said:
I have an issye with my HOX. My phone have started getting hung a lot of time.. i mean the phone is working so slow. Then one of my friend adviced me to instal a ram booster. Effectivly it worked well. I created a whitelist of apps not to be killed. Everything is just good. But i kinda have a trouble now.
My problem is that soon after i boost my ram,the set of apps again start on. I mean all the apps which i killed,thwy start in process in just next second after i killed them. Now can anyone help me by guiding me the most suitable solution for my issues.View attachment 1618574
Now i want to set thses apps which is ticked in the picture not to start in process on its own.
Can anyone guide me for the above problem. Like nfcservice,calender storage,whatsapp,bluetooth and all other unnecessary apps.these apps are just using my ram memory and kinda making my phone not work with itz real efficency. So please provide me a solution.
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
up up up up up up ........
Free RAM is wasted RAM is more an opinion, not a fact.
You can use something like "Autostarts" and/or "Startup Manager" to control the triggers for all Apps, that will teach them some behaviour...
Can't stand all that stuff running in the background even though I only use some of them only once a week either.
Its a fact. Linux memory management will only start the killed process again and again, wasting cpu and battery, furthermore, cached processes in ram do not use battery.
Free ram is wasted ram, if you only want 400-500 mb of ram used, why not buy a phone with 512mb of ram?
Sent from my faster than SGS3 HOX.
If you want to have ROM without some native programs - you can try custom ROM. There are plenty excellent ROMs.
If you want to freeze some apps it will be better to do it manually thru
Ssttings- Apps- last(fourth row) in which you will find all working apps, even system apps.
But bear in mind that the Android OS needs some of them in some specific moments, so if you disable them your system may be crashed or slow-same as your problem at the moment.
So my advice is- find smaller as possible ROM (Blade or else) and minimise your apps you are using.
Regards.
Sent from my HTC One X using xda premium

Samsung "notes" app - running too much in the background

Hi all
As you can see in the image, the Samsung Notes app is running wayyyy too much in the background, eating up my battery. This is even after I make sure the app is closed after using it!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tried to set the app to go to sleep, but this was not possible as it is a Samsung dedicated app. I couldn't even optimise this app either. The only solution seems to be "force stop"ing this app, which I prefer not to do as I use the app once or twice a day to write notes.
Anyone have any thoughts on how to stop this app from running so much in the background?
Possibly notes is trying to continuously update to the Samsung Cloud?
Birdsfan said:
Possibly notes is trying to continuously update to the Samsung Cloud?
Click to expand...
Click to collapse
Thanks for your response, but nope - I've disabled everything from being able to backup to Samsung cloud
Personally I don't understand why the applications stay active in memory after I stop using them, since I can't tell the difference even if my life depend on it if apps is cold started, or starts from memory, either way it starts almost instantly, so yes I would definitely force stop it myself, especially that I feel this "feature" of all apps staying in memory is more for advertising purposes than anything else, especially now. There is a switch to either put app to sleep or not allow background activity, one is under apps inside battery menu, another under battery usage menu. I'm trying to limit all apps from running in the background, except for map which needs to be constantly updated for traffic, but what a pain in the neck it is, there are over 400 apps on the damn phone.
bobtehbuilder said:
Thanks for your response, but nope - I've disabled everything from being able to backup to Samsung cloud
Click to expand...
Click to collapse
Disable or uninstall this trashware.
Switch to an app that stores your notes in a standard format such as text files etc so you can always read them in the future.
Finding a good free office app is now almost impossible for Android. I use an old copy of Kingsoft WPS Office. Today's newer versions though are pure crap unless you pay, pay, pay.
Used Samsung Notes on my S4 but restoring them became a tedious nightmare when I migrated to the Note 10 platform because Samsang "upgraded" their app so it wasn't backwards compatible with their older version's note files.
Don't trust Samsung with any data you care about; they will make it obsolete by their time table not yours.
Thanks for nothing Samsung... feel the wuv for the rabid gerbils in the box.

Anybody kernel tweaking?

I wasn't interested, really. Phone runs fine. But, I came across some stuff, was reading, decided to try ktweak. I'm running Lineage 17.1 on my edge. Seems to be no problem and if I noticed anything at all thus far it's maybe a bit more battery life. I wouldn't swear to it, though, hasn't really been long enough. Also, it could be that SD Maid was faster when listing all the phone's apps in the appcontrol section, which is something I would care about. The edge was already pretty fast in that the apps listed in about 2.3 seconds. Seems to be just under 2 now. Could be wishful thinking, I dunno.
THere's lots to do if you get into tweaking your kernel - that's a big rabbit hole, and I'm just not that geek anymore. Ktweak is just a script, it just runs that one time to make its changes. It won't survive a reboot, but, there's an apk for an interface that lets you toggle to run at every boot.
THere's already a ton of info about it so I won't throw my ignorance in. Just wondering if anyone else decided to make a few kernel changes, or, is maybe using this script. You can see the tweaks here.
I noticed an error since utilizing this script. Coincidence or not, I dunno. 3C all-in-one has a cache feature for the 'drives' on your phone. You can increase it following a quick test. I have done it in the past on this phone and ROM, without ill effect. I had a 'download' error yesterday in Firefox and in Aurora. I didn't a few days ago, so I reset the cache option to default in 3C, rebooted, and the download error was gone.
I set the cache option in 3C after I ran this script.
It's all anecdotal to this point, but maybe the 3C cache setting doesn't play well with the default hacks this script performs. I didn't even look, I don't even care - it's just a thing I noticed and currently all is well.
Since utilizing the kernel mods set by this script I haven't really noticed anything different in real-world usage in the phone, other than mentioned. It has always been responsive, fast, it runs really well with Lineage, it ran well with stock, too. I'm not performing experiments or anything remotely similar, I am just using the phone as normal.
What is interesting is that I got almost 4 days out of my last charge. That is definitely an improvement. It's not that big a deal, really. The phone gets 2 days anyway and I have a routine that alleviates battery/charge concerns.
4 days, 6 hours+. That's something.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Question AOSP ROM's are closing recents automatically?

Good afternoon!
I have a question about AOSP based ROM's. At first I thought this was only occurring in the Nameless ROM but I can also find this behavior on other custom ROM's. It seems that apps are getting closed automatically after some time, as if I would go to the 'Recents' screen (or however this screen is called) and I would swipe those apps away.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is definitely noticeable when I wake up in the morning, almost all my apps are gone from Recents while I almost never swipe any apps away. I find this behavior not efficient since my phone never makes use of the 12GB RAM which I've spend extra money on. Here you can see that only 7 GB is actually used (including cached processes).
When I open up all my apps at once my RAM usage goes up but after some time it seems to close apps and it goes back to 5-6 GB of usage or so.
I find this frustrating. I have an iPhone 12 from work and I use that phone rarely. But a week later I can expect my app to still be open where I left it.
In the ROM's I tried, I tried disabling any battery savers if there were any, without result. I also have FKM installed and tried changing some memory related kernel settings which did appear to have some effect but that also might be a placebo and tbh I'm not fully aware what kernel settings I should apply.
TLDR: Can anyone advice me how I can stop my AOSP rom from clearing apps in the background?
Thanks for your input
Kind regards,
GolovaRaoul
Hi,
I have not tried any custom ROM yet, but I can confirm that default ROMs for "OnePlus, Xiaomi, Samsung" are all doing the same behavior once the phone is setting down and not being used for a while "sleep mode" this actually good in my opinion, it will automatically close all apps except the apps you are choosing to not to be closed "locked apps" in oxygen os, you can select multiple apps to prevent them from being closed during night or even when you tap "close all" button.
So, I think this is an Android optimization to save battery during night not only in AOSP ROMs.
Thanks for your response
Well I don't like this behavior personally. It takes time and processing power to re-open apps and navigate them back to the stage where I had them before. I need to relaunch Spotify 5 times per day which is annoying and I really shouldn't need to on a flagship smartphone with 12 GB of RAM.
GolovaRaoul said:
Thanks for your response
Well I don't like this behavior personally. It takes time and processing power to re-open apps and navigate them back to the stage where I had them before. I need to relaunch Spotify 5 times per day which is annoying and I really shouldn't need to on a flagship smartphone with 12 GB of RAM.
Click to expand...
Click to collapse
This actually not belong to RAM capacity itself, it is system implementations and how should apps behave. As I said it will only close the apps during "sleep period" and you can select multiple apps that you want them run in background all the time see attached photos.
You are welcome
dream2poet said:
This actually not belong to RAM capacity itself, it is system implementations and how should apps behave. As I said it will only close the apps during "sleep period" and you can select multiple apps that you want them run in background all the time see attached photos.
You are welcome
Click to expand...
Click to collapse
Yeah you could be right about the behavior. I still want to change it tho. And by default, AOSP does not have something like 'memory locking' and this is a feature of Oyxgen OS.

Categories

Resources