Greetings,
I have a Tab S4 (SM-T830) with Android 9 (kernel 4.4.153-15659493. I also have Linux On Dex installed. I have noticed that when I actually try to do work in LOD (Ubuntu) just running a few terminals + Visual Studio Code, that the container 'runs' out of memory. 4GB clearly isn't enough memory to support both the Android OS + Ubuntu running at the same time. My only option (unless someone else knows of a way) is to enable SWAP on my SD Card (I have a class 10 128GB Samsung). I figure if I at least give it another 4GB or maybe 8GB of SWAP that my Ubuntu Container won't be killed due to lack of RAM.
Anyone know what my options are for enabling SWAP?
Thank you
Related
Hi everyone,
I am wondering if it's possible to enable this on our EVOs and also what sort of effects would it create? From inside the "A2SDGUI" app (from dta2sd) it isn't possible for me to activate swap under "swap settings" even if I currently have my SD card partitioned with 128 megabytes in a swap partition.
Could we follow the instructions found in the link below (on post #2)?
http://forum.xda-developers.com/showthread.php?t=1349694
Physical memory can be extended using a swap partition. So when your phone (or system) starts to run low on memory, it moves some of the inactive processes into the virtual memory. [1]
[1]http://zerocredibility.wordpress.com/2009/08/24/why-android-swap-doesnt-make-sense/
Swap is, in short, virtual RAM. With swap, a small portion of the hard drive is set aside and used like RAM. The computer will attempt to keep as much information as possible in RAM until the RAM is full. At that point, the computer will begin moving inactive blocks of memory (called pages) to the hard disk, freeing up RAM for active processes. If one of the pages on the hard disk needs to be accessed again, it will be moved back into RAM, and a different inactive page in RAM will be moved onto the hard disk ('swapped'). The trade off is disks and SD cards are considerably slower than physical RAM, so when something needs to be swapped, there is a noticeable performance hit.
Unlike traditional swap, Android's Memory Manager kills inactive processes to free up memory. Android signals to the process, then the process will usually write out a small bit of specific information about its state (for example, Google Maps may write out the map view coordinates; Browser might write the URL of the page being viewed) and then the process exits. When you next access that application, it is restarted: the application is loaded from storage, and retrieves the state information that it saved when it last closed. In some applications, this makes it seem as if the application never closed at all. This is not much different from traditional swap, except that Android apps are specially programed to write out very specific information, making Android's Memory Manager more efficient that swap.
This question is hotly debated, but you almost definitely do not need swap. The only exception to this may be if the device is a first generation device (i.e. HTC Dream or HTC Magic).
Swap can give more available memory, however, class 6 SD cards are recommended and SD write wear is increased.
Actual performance depends on user memory use; you'll only see a benefit if you're consistently using up all available memory, due to any combination of inherently low device RAM, using multiple apps simultaneously, or a singularly memory-intensive app. Otherwise, the performance hit will exceed any performance gain.
How can I tell if swap/compcache is running?Go to the terminal emulator - or open adb shell - and run 'free'.
If it looks like this (with zeros in the swap line), you do not have swap
total used free shared buffers
Mem: 97932 96640 1292 0 272
Swap: 0 0 0
Total: 97932 96640 1292
Alot of the present roms floating around right now,don't use the swap partition,but its a good idea to leave something like 1GB or less for future swap initiation.
Thanks for taking the time to break this down. I was wondering myself if swap would be of any practical use. This is by far the best explanation I've seen so far.
Sent from my PC36100 using xda premium
I use a small swap partition(48mb) using swapper activator for when I'm playing certain games and need other apps to stay where I left em when I switch back
We are legion, for we are many.
Will ram expander help my infuse 4g play games better?
Sent from my SGH-I997 using Tapatalk 4 Beta
best explanation so far:good::good:
hi all, I have a little question on s4 mini duos I9192.
using "free" or "meminfo" commands displays memory informations, the phisical ram displayed is 1,3 gb but the phone is declared 1,5 gb confused , so I thought it will be some zram but analising the memory its not zram.
by the way there is a swapfile of 1gb.
please can someone confirm this? I am playing with swappiness value and I must be sure if I touch zram or swapfile
screenshot attached
I'm guessing your using stock os as that uses a 1gb swap file. Zram is kernel dependant and I don't think stock makes use of this. Although our phones have 1.5gb RAM some of this is stolen by Android OS. The same with our 8gb storage which part of is stolen by Android again leaving us with around 5.5gb.
Would like to know how you get on with different swapiness values, and which you decided to settle on.
RuffBuster said:
I'm guessing your using stock os as that uses a 1gb swap file. Zram is kernel dependant and I don't think stock makes use of this. Although our phones have 1.5gb RAM some of this is stolen by Android OS. The same with our 8gb storage which part of is stolen by Android again leaving us with around 5.5gb.
Would like to know how you get on with different swapiness values, and which you decided to settle on.
Click to expand...
Click to collapse
Thanks, yes I'm on stock.
I noticed that the 1gb swapfile is little used; with swappiness 100 swapfile is used about 200mb and with swpss 20 about 40mb both after 1 day of use;
Also the used part tends to accumulate and grow from boot but I shutoff phone at night so swapfile resets at boot.
My idea was to delete swapfile to recovery space bit I can't, swapoff doesn't work.
Anyway I think phone is smoother with low swappiness and with medium usage I never suffered lack of ram problems.
hi !
swap & Zram are completely useless for a device like ours .....because we have enought RAM and enought power .
thes two are develloped and used before for old low and middle devices
the best is to grenify or freeze unused apps and services for a more lighten rom....
Loulou-13 said:
hi !
swap & Zram are completely useless for a device like ours .....because we have enought RAM and enought power .
thes two are develloped and used before for old low and middle devices
the best is to grenify or freeze unused apps and services for a more lighten rom....
Click to expand...
Click to collapse
Yes, already greenyfied all and removed all bloat and useless apks.
My doubt is why stock rom has a so large swapfile, a waste of space
?????????7
may be some one can help you right here dearly .
Hi
I bough android rear view mirror with below config.
System: Android 4.4.2, Allwinner A33 Quad core CPU, 4 ARM Cortex TM A7 CPUs.
2. RAM: 1GB RAM DDR3.
3. ROM: Built-in 16GB internal disk, can support up to 32GB Micro SD Card.
4. 7 inch big screen can split into two display. 5-points capacitive touch screen, clear, sensitive slight touch.
But thing is i cannot install apps to device its says insufficient storage available. it has three storage 300mb , 16 gb internal and 32 gb SD card. normally app goes 300mb location.
SO i want to install apps to second internal storage 16gb but how i do it. sorry for bad english.
Thank you
I had some success by installing uninstaller.app.
I used uninstaller to remove and freeze some unwanted apps and this allowed me to install a few of my favorites. Still space is very limited.
Try contacting your seller. They may be able to provide you a firmware that increases the system storage where the apps are installed.
However if your mirror is 512mb then unfortunately that's all you're going to get out of it.
You may need a mirror like this one to avoid that problem:
https://youtu.be/fW_PavSv91k
Good Luck!
Hello. How to increase RAM to 4-6 GB? Who can become a donor?
Sorry for my English. My Google Translate Assistant
You can't magically "increase" your hardware RAM to 4 or 6GB, but instead you can set a virtual ram environment using internal storage, which helps the hardware RAM to not force close any background apps due to no ram available, install this app (https://play.google.com/store/apps/details?id=com.allakore.swapnoroot&hl=pt_BR&gl=US) and set the space that you want to reserve for RAM swapping, you can even do it without root.
Thnx)
Unfortunately, software magnification does not solve the problem. I wonder if I can raise my memory mechanically
I know it's possible. On other devices
Android Phone User DIY Upgrades From 16 To 64GB Internal Storage
Imagine our surprise when the first smartphone with upgradable internal storage wasn't a Project Ara phone from Google, it was a Nexus 5 from LG.…
www.slashgear.com
There is some ways to upgrade the EMMC, but i dont think its possible with RAM...
Tsumetaay said:
You can't magically "increase" your hardware RAM to 4 or 6GB, but instead you can set a virtual ram environment using internal storage, which helps the hardware RAM to not force close any background apps due to no ram available, install this app (https://play.google.com/store/apps/details?id=com.allakore.swapnoroot&hl=pt_BR&gl=US) and set the space that you want to reserve for RAM swapping, you can even do it without root.
Click to expand...
Click to collapse
Hello, I installed the application in the link you gave. But I couldn't create partition for swap space. It gives an error. Is there any other method to improve the ram of my device
Android Police has an article on how to disable Samsung RAM Plus if you're still one OneUI 4.x. In the beta for OneUI 5, the option is there but it's not in v4.
RAM Plus allows you to allocate a portion of your phone's storage to act as virtual RAM and can help with multi-tasking multiple apps., especially with devices with smaller physical memory. But, it could have the opposite effect and cause performance to be hampered.
You'll have to enable Developer mod on your device first so you can then enable ADB debugging.
Once you have ADB debugging enabled, plug your phone into your computer and then open a command prompt and run the following ADB command:
Code:
adb shell settings put global ram_expand_size_list 0,1,2,4,6,8
After the command is completed, reboot your phone. After the reboot, navigate to Settings->Battery and device care->Memory.
Open the "RAM Plus" menu and you should be able to select 0gb to 8GB or 16GB depending on your device. Reboot your phone again and see if you see a difference in performance.
I just learned about this today and thought I would share. The link to the actual article is below.
Samsung RAM Plus slowing your phone down? Here's how to disable it
Is your Samsung Galaxy slowing to a crawl with One UI 4.1? Here's an easy fix. 🐢
www.androidpolice.com
Just did this, no noticeable improvements so far but also no issues.
iBolski said:
Android Police has an article on how to disable Samsung RAM Plus if you're still one OneUI 4.x. In the beta for OneUI 5, the option is there but it's not in v4.
RAM Plus allows you to allocate a portion of your phone's storage to act as virtual RAM and can help with multi-tasking multiple apps., especially with devices with smaller physical memory. But, it could have the opposite effect and cause performance to be hampered.
You'll have to enable Developer mod on your device first so you can then enable ADB debugging.
Once you have ADB debugging enabled, plug your phone into your computer and then open a command prompt and run the following ADB command:
Code:
adb shell settings put global ram_expand_size_list 0,1,2,4,6,8
After the command is completed, reboot your phone. After the reboot, navigate to Settings->Battery and device care->Memory.
Open the "RAM Plus" menu and you should be able to select 0gb to 8GB or 16GB depending on your device. Reboot your phone again and see if you see a difference in performance.
I just learned about this today and thought I would share. The link to the actual article is below.
Samsung RAM Plus slowing your phone down? Here's how to disable it
Is your Samsung Galaxy slowing to a crawl with One UI 4.1? Here's an easy fix. 🐢
www.androidpolice.com
Click to expand...
Click to collapse
Even if you change it to 0 or 10 it will be 4GB and you will see in ram truth app.
Stefan101 said:
Even if you change it to 0 or 10 it will be 4GB and you will see in ram truth app.
Click to expand...
Click to collapse
I believe this app shows SWAP particion space, right? Is this the same as RAM Plus?
godoy.rafa said:
I believe this app shows SWAP particion space, right? Is this the same as RAM Plus?
Click to expand...
Click to collapse
It's still right for 2,4,6,8GB in ram plus but if you try 0GB or 10GB, 20GB or whatever, it's only show 4GB swap space in that app. Means even if you try to disable swap space or add more swap space as max recommended(8GB) , it's only change to 4GB. But in RAM plus, it would show the the amount of swap space as you customise. Just for show but not actual swap space amount.
godoy.rafa said:
I believe this app shows SWAP particion space, right? Is this the same as RAM Plus?
Click to expand...
Click to collapse
RAM Truth - Apps on Google Play
Display the amount of RAM (random access memory) for your device.
play.google.com
There's other apps too you can check your actual swap space ( ram plus or page file or whatever you call) . I guess it will show the same.
With 0GB of ramplus I have 4GB of swap.
With 2GB of ramplus I have 3GB of swap.
Crazy!
godoy.rafa said:
With 0GB of ramplus I have 4GB of swap.
With 2GB of ramplus I have 3GB of swap.
Crazy!
Click to expand...
Click to collapse
Ya. The point is you can't disable swap space or add more than 8 GB . And it's okay for 4GB swap space at least. We use Samsung dex sometimes and it's run a lot of background apps. So I change it to 8GB . And it will share 12GB ram for priority apps you're using on screen. It won't slow down cuz swap space. We already got enough ram.
godoy.rafa said:
With 0GB of ramplus I have 4GB of swap.
With 2GB of ramplus I have 3GB of swap.
Crazy!
Click to expand...
Click to collapse
It's show 4GB ( Dafult value in ram plus options) cuz you change it lower than 2 GB or more than 8GB.
How can I go back to the default mode?
bahram360 said:
How can I go back to the default mode?
Click to expand...
Click to collapse
you can "turn on" again your ram plus using this command
adb shell settings put global ram_expand_size 8192
after run that command don't forget to restart your phone, that command make your phone use 8 GB of ram plus, and you can see your ram plus setting will be turned on again, now you can select from the setting which size you want to use for your ram plus