yashsingh1/xdaforums huggingface dataset:
[General Topics] Hamid Chikh:
It's recommended, just to make sure. Sometimes software updates change some settings which make optimisations go away
[General Topics] KAngelo:
96.. My fault :)
[General Topics] robnitro:
Hm...

Anyone rooted can run this on terminal to check?

cat /proc/swaps

It will show if it's zram or disk based swap.

i would prefer disk based, zram is dumb in that to access compressed ram, it has to decompress it to ram first, wasting ram

Using devcheck

i tried 16gb and it used 4, so yeah it seems like it's zram.

6gb shows 6gb though.
[General Topics] George Musat:
4.1,thats the strange thing,i already factory resetted
[General Topics] jshsvck:
Ok, Will do. thanks
[General Topics] NozGojira:
This what I don't get. What is that reserve and what is that ram plus? Which one need to delete? Seems like i dont need them since I'm having 16gb stock out of my phone
[General Topics] Hamid Chikh:
That's odd, try again
[General Topics] almora9:
- adb shell settings put system peak_refresh_rate 96.0

- adb shell settings put system min_refresh_rate 24.0

S21 ultra.

hello i want to use these settings. will these settings also apply in power saving mode?
[General Topics] bebbo203:
What do you mean with 2mb?
[General Topics] KAngelo:
Hmm same thing happened again.. Suddenly stuck on 60 Hz and starts laggin, even when high is set to 96 Hz.

No problem when set to 120 Hz.
[General Topics] jsmcmahon89:
Same here on base S21. Only way I can get it to hit 96 is to set the min and peak to 96. Of course I didn't keep the min there, but I was just trying to see if I was able to force 96 Hz, and that was the only way I could figure out.
[General Topics] Hamid Chikh:
1GB reserved for system apps to stay loaded in ram
[General Topics] Hamid Chikh:
No, power saving mode sets refresh rate to 60 fixed, not adaptive
[General Topics] Hamid Chikh:
you're right, same for me. I'll look more into it
[General Topics] Hamid Chikh:
They might have taken it off the parameters to be able to set adaptive to 96hz. Can someone using GMH confirm ?
[General Topics] Hamid Chikh:
It's 10hz for the ultra, you can set min to 1.0 to make sure it gets to its lowest possible (hardware limit)
[General Topics] George Musat:
2mb of ram plus lol and zram too
[General Topics] jshsvck:
'Disable Motion Engines​

- adb shell settings put system master_motion 0

- adb shell settings put system motion_engine 0

- adb shell settings put system air_motion_engine 0

- adb shell settings put system air_motion_wake_up 0'

Hi, May I know what motion engines are? are they body sensors, gyro?

thanks
[General Topics] keremsirma:
Hı @Hamid Chikh Thank you very much for your work. I have a question. When using the phone horizontally, the brightness bar does not work. Do you know which service it is from? My phone is s20Fe. I used your presets.
[General Topics] George Musat:
- adb shell settings put global app_standby_enabled 1

- adb shell settings put system mcf_continuity 0

so what these 2 doing :))))?
[General Topics] Hamid Chikh:
Gyro still works after disabling those. They came disabled for me so i shared for everyone to benefit
[General Topics] Hamid Chikh:
Works for me, never heard of that issue before. Might be because of navigation bar ? Try disabling hint and restart
[General Topics] Hamid Chikh:
You don't know what App standby means ?
[General Topics] NozGojira:
Try to change ur screen reso at fhd+ look if 96hz is working now
[General Topics] tsiharry:
It will never get down to 10hz. 48hz is the minimum.
[General Topics] George Musat:
- Adaptive Battery: DISABLED.

why exactly?
[General Topics] Kris_b1104:
Here's a pro tip: if you're unsure about something or don't know if you should do it or not, DON'T do it it. Chances are you'll barely be able to even notice the difference because you won't know what you're looking for.
[General Topics] Lurien:
Are the latest presets safe for the Tmobile variant? Thanks.
[General Topics] Ivixmax:
Why this post is moving to other subforum? i dont understand...
[General Topics] Cellzor:
Is there any way to underclock the SoC like power saving does but without setting the static 60fps mode?

Also do the commands for 96fps still work or are they now broken? I get mixed indications from the newer comments in this thread.
[General Topics] Hamid Chikh:
Look thru the thread
[General Topics] Hamid Chikh:
We're going international, that's on purpose
[General Topics] Hamid Chikh:
Restrict performance does just that.
[General Topics] Ivixmax:
So finally in 4.1 ui we cant quit the ****ing ram plus?

What is the best 2 gb of ram?
[General Topics] Hamid Chikh:
Turns out, 1Gb is the best option we got. You can still enable more options.

You just got it huh? I couldn't wait till it's released in BTU and just flashed DBT
[General Topics] Ivixmax:
I flashed dbt version today yep of 4.1 but i think.now there is no botton to turn of the ram plus.The minimum is 2gb
[General Topics] Ivixmax:
Sorry for the second comment.But i dont understand before ram plus was no neccesary and now its obligatory
[General Topics] Hamid Chikh:
Interesting, what do you guys think ?
[General Topics] Hamid Chikh:
That's because 0 doesn't work. That's why i advise to go for 1GB ramplus
[General Topics] maxq1:
updated ADB commands to disbale ram+ work for me. survives a reboot too. one ui 4.1. thanks again, OP 👍
[General Topics] Ivixmax:
Can you post a screenshoot of ram plus section now?
[General Topics] maxq1:
ram+ = swap (uses free storage) and zram is free ram within ram. did i get that right? so if unrooted, we can turn off ram+ but not zram? i'm guessing this is the reserved 1.7GB++ i'm still seeing even when ram+ is disabled and zram set to 0

@Ivixmax check the last screen on the recording from my previous post. that was on one ui 4.0. i'm on one ui 4.1 now and the same adb commands seem to work. ram+ section is the same
[General Topics] Ivixmax:
Itd strange bacause some minutes ago i push the adb command and still ram plus on 2gb...

I am on last dbt one ui 4.1
[General Topics] Kris_b1104:
So I ran the adb command to disable RAM Plus and Zram, and it says my RAM Plus is at 0gb. Take a look at my screenshots. I downloaded DevCheck to look at the Zram.

My phone is a S22 Ultra Snapdragon 512gb with 12gb of RAM. ONE UI 4.1.

Is it really disabled based on what you see? According to DevCheck, I'm using 4GB of Zram and 10gb of RAM.
[General Topics] Ivixmax:
With the adb command to 0
[General Topics] robnitro:
No, it seems like their so called RAM+ is actually just zram. They claimed it was to a file on the device like traditional swap .. which I've employed successfully on rooted phones.

Cat /proc/swap if you are rooted to see what this RAM+ really is....
[General Topics] Kris_b1104:
So I used the command to enable ram plus size options, rebooted, and then chose 1GB for RAM Plus. Now when I go into DevCheck, my ram shows 10GB and Zram shows 2GB, so that's 12GB of RAM. I think this is normal right? Should I change it? Phone is running smooth, no lag.

I did not have to use the command to disable zram.
[General Topics] maxq1:
curious, can you share a screenie of your memory tab in settings?
[General Topics] Kris_b1104:
Sure.
[General Topics] maxq1:
thanks! but i think you have ram+ disabled. reserved 2.1gb on your screenie is prolly your zram, which it seems now we can't do anything about it if we're unrooted. regardless, you should be golden.

i'm still convinced ram+ is simply swap (most OEMs who have this feature do advertise "additional" ram from free storage) and zram is within ram for sammy devices. post the OP shared seems to jive with this too. the latter is fine. the former i'd avoid so i'm thankful for this thread
[General Topics] maor23:
bixby routines is working, just the sleeping auto detect section there isn't working. it has a red warning beside it, but the other things are working well.

maybe you know what I'm missing?

edit: look at the pictures I screenshoted

and if i press this red warning, the sleeping method is dissapear

you can see that in the list it not showing

edit2:

tried to restore all Samsung application I deleted, still this is not it. very strange, cause before 2 days that worked perfectly.

so even with the restore now it isn't working.. tried to search on google, nothing.

please help
[General Topics] Hamid Chikh:
You can't set it to 0 if you don't enable the option 0.
[General Topics] maor23:
please bro if you can help me with bixby routines when sleep.... it just does not work. A few days ago it worked and it seemed like it was working on identifying sleep times, now it is not working. I deleted the routine and tried to create a new one, and I have no more sleep option on the list. hopefully you know the problem.

Believe I touched some sort of detection sensor or something simillar

This is my list:
[General Topics] Hamid Chikh:
It just doesn't work putting 0
[General Topics] Hamid Chikh:
DevCheck shows ZRAM operational, 0 doesn't work
[General Topics] Hamid Chikh:
I'm still looking into it, not sure.
[General Topics] Hamid Chikh:
Setting it to 0 makes ZRAM go to 4, setting Ramplus to 1gb makes ZRAM 2gb
[General Topics] Hamid Chikh:
You don't need to set it with ADB, just unlock all RAM Plus options and change the amount from settings
[General Topics] Hamid Chikh:
Can you confirm is RAM Plus is SWAP or Compressed RAM (ZRAM) ?
[General Topics] Hamid Chikh:
That's not it, that 10 you see is 12GB of RAM (add 1.7 reserved to system), the other 2 is zRAM which is the amount of ram compressable inside RAM
[General Topics] jdlfrnz:
Hi Sir @Hamid Chikh . May I know what does these command do?

12 - Extra battery​

- adb shell settings put global app_standby_enabled 1

- adb shell settings put system mcf_continuity 0
[General Topics] Hamid Chikh:
Yes, setting RAM plus to 1GB makes ZRAM go 2GB, which i think is the best option we got.
[General Topics] Hamid Chikh:
actually, "reserved" is a part of ram reserved for system services, not zram, not swap, not ram plus.

At first; i thought the same, RAM plus = SWAP and ZRAM is still the same ZRAM from AOSP (compressible part of RAM). then, i read that reddit comment saying it's the other way around, now i'm confused.
[General Topics] Hamid Chikh:
If you restored all "bixby" apps and it still doesn't work, might be something else to check (not related to debloating)
[General Topics] Hamid Chikh:
Try restoring bixby apps and wipe data/cache for bixby routines, i can't help you more than this since i don't personally use it. Also, if you applied some commands in ADB, try resetting them to default.
[General Topics] Hamid Chikh:
- Enable app standby

- Disable continuity servie
[General Topics] maor23:
Interesting .. so you have an idea maybe what it could be?

Because really it has nothing to do with any BIXBY setting I deleted
[General Topics] jdlfrnz:
thanks sir!
[General Topics] Hamid Chikh:
You didn't answer my question
[General Topics] Hamid Chikh:
Have you restored all adb commands to default like i asked you ? @maor23
[General Topics] maor23:
I didnt used any adb commands.

I restored everything that seemed to be something of bixby, still nothing.

The sleep method is just disappeared from there
[General Topics] Hamid Chikh:
Pretty sure it's something else than these tweaks then.
[General Topics] Hamid Chikh:
Google collecting data from Google Messages & Google Dialer​

Messages, Dialer apps sent text, call info to Google

Hashed text, phone call logs collected without opt-out nor specific notice

www.theregister.com

Next update will restore samsung apps to replace those
[General Topics] maor23:
Like what?

I added all my deleted list, can you see something that might be it?

I thought maybe it was related to various health apps, but neither was it.
[General Topics] Hamid Chikh:
##### 22-03-2021 ##### ONEUI 4.1 PRESET C17​

- GOS still disabled and sticks after reboot

- Restored Samsung Dialer and Messages since Google is collecting data

- Managed some apps.

Waiting for your feedback

UPDATED STEPS IN OP

Deleted: 327

Kept: 91

Disabled: 2

*REVIEW APPS BEFORE APPLYING PRESETS.

*APPLY ALL 3 OF THE NEW PRESETS.

*REBOOT INTO RECOVERY, CLEAR CACHE PARTITION 3 TIMES, THEN REPAIR APPS.
[General Topics] Hamid Chikh:
I can see a lot of bixby apps you deleted there, try restoring all bixby apps and reboot
[General Topics] maor23:
Yes, like I said I restored everything and it still the same
[General Topics] Hamid Chikh:
You can wait for someone that uses bixby routines to reply, i never used that anyway.
[General Topics] robnitro:
I cannot. Not rooted.

Anyone rooted can check with...

Terminal

Su

Cat /proc/swaps
[General Topics] Ivixmax:
I can
[General Topics] Hamid Chikh:
I set ramplus to 1Mb. Zram still 2GB.
[General Topics] Hamid Chikh:
Can you check for us ? For each parameter
[General Topics] Ivixmax:
Give me a few minutes
[General Topics] George Musat:
Be careful I fked my phone like that 😂
[General Topics] George Musat:
When I setted the zram at 3mb
[General Topics] Ivixmax:
Ram plus set to 1 gb
[General Topics] Hamid Chikh:
Yes, it's the same. Like i said, setting it to less than 2gb sets zram to 2gb. i set mine to 1mb
[General Topics] Hamid Chikh:
Thank you, can you try setting it to 1mb ? also check swap
[General Topics] Ivixmax:
Yep i think the 1 gb option is the best for us.

You know if a i can delete ramplus if i am rooted?
[General Topics] Ivixmax:
How to set to 1mb? I dobt understand this.the minimal is 1 gb no?
[General Topics] Hamid Chikh:
Updated OP, the command to set RAM plus is in MB
[General Topics] Ivixmax:
Ok i try
[General Topics] Hamid Chikh:
Still don't know if RAM plus is SWAP or ZRAM
[General Topics] Hamid Chikh:
Setting RAM Plus to 16GB still sets Zram to 4GB. I think zram only goes from 2-3-4 gb
[General Topics] Ivixmax:
Ram plus to 1 mb
[General Topics] Hamid Chikh:
Yes, it's the same
[General Topics] Ivixmax:
So to concluse.What setting do you think is the best?
[General Topics] Hamid Chikh:
I'm trying 0. values now, device care crashes and zram still at 2gb
[General Topics] Ivixmax:
Oh my god.i dont like this samsung games...Primary the GOS,now the ram plus....🤦
[General Topics] Hamid Chikh:
I'd say 1GB RAM plus is the best. Keeps zram at 2gb only
[General Topics] Hamid Chikh:
We're doing our best to optimise our phones, in the end, the result is just a millisecond more or less. Don't forget all the tweaks we have in OP, RAM plus isn't gonna change a lot
[General Topics] Hamid Chikh:
@Ivixmax Thanks for your help, appreciated. i'll continue my tests and update OP with the best solution i can find
[General Topics] Ivixmax:
Thanks you master! If i can help you...say me.Remember i am rooted☺️
[General Topics] Hamid Chikh:
RAM Plus / ZRAM / SWAP Conclusions​

- ZRAM: The amount of ACTUAL PHYSICAL RAM that can be compressed to save space in RAM when launching lot of apps

- SWAP: A space in INTERNAL STORAGE that's used to behave like RAM and stores cached apps that haven't been used in a certain amount of time

- RAM Plus: It's rebrand of SWAP, does the same.

- Android doesn't usually give you the choice when it comes to managing apps, there's RAM, zRAM, SWAP, all of which are automatically managed and each have good/bad consequences. A full operating system needs/uses all of those to operate efficiently.

- What samsung did, is give you the opportunity to set one of these parameters, which is SWAP, to give you the option to choose how much you like internal storage to be used as SWAP.

- Keep in mind that the more is swapped, the slower your phone operates, because RAM is the fastest memory a phone can operate from (after CPU cache of course).

- Setting RAM+ to 0 sets ZRAM to 4GB, setting RAM+ to 1GB sets ZRAM to 2GB.

Disabling SWAP (RAM Plus) creates the need of more space to manage cached apps which increases zRAM.

- You can disable RAM Plus with adb commands in OP, but, ZRAM will increase to compensate for the gap RAM+ leaves when off (ZRAM goes to 4GB max).

Summary of Ram Plus values and changes occurring automatically to Zram:

RAM Plus(GB) > ZRAM(GB)

0 > 4

1 > 2

2 > 3

4 > 4

6 > 6

8 > 8

12 > 4

16 > 4
[General Topics] robnitro:
Thanks. If ram+ is set to higher, i would guess still zram.

Can you try 6gb or 5gb to see if there is other than zram, if there's a real swap also (it wouldn't be named zram in /proc/swaps.

I'm surprised they use just one device, usually you want multiple zram since each run on a different CPU thread. My lg g8x uses 2 zram partitions.

Since it's rooted, I was able to disable zram by using tasker shell command with root, "swapoff -a" if I recall correctly.
[General Topics] maor23:
hopefully you or someone else can find a solution for me
[General Topics] robnitro:
No, I haven't seen anyone rooted show that there is anything but zram.

Until then, I will assume that it's not swap at all..
[General Topics] paul222008:
So the best config for us is to set ramplus to 1gb because that's the lowest possible we get in the zram ?
[General Topics] mysky911:
RAM Plus 8GB will get ZRAM 8GB
[General Topics] Hamid Chikh:
You're right, thanks for your input
[General Topics] robnitro:
Can you try 5 or 6gb and see if /proc/swaps shows still just zram?

If I had root, I would do it.
[General Topics] Ivixmax:
Buff maybe later
[General Topics] Macusercom:
For anyone interested: you can disable zRAM with this command (requires root):

swapoff /dev/block/zram0

However, you'll need to apply this on every boot meaning zRAM will be used in the first minute after booting.
[General Topics] Hamid Chikh:
I'd say you can either go with 0 Ramplus and get 4GB zRAM, or 1gb ramplus with 2GB or zRAM
[General Topics] George Musat:
i still fked my phone just doing this,so i setted all zram and ram plus to 1mb and then after 2 minutes restarted in loop
[General Topics] mysky911:
summary of RamPlus and Zram value

RAM Plus(GB) == ZRAM(GB)

0 4

1 2

2 3

4 4

6 6

8 8

12 4

16 4
[General Topics] KKYASIR:
which combination is best ??
[General Topics] KKYASIR:
my geekbench score drastically decreased after applying extreme battery commands , before it was above 1k and 3k

RAM plus set to 0 and then on 2 , results are same .
[General Topics] Kris_b1104:
Let it settle, give it some time. Same thing happened to me then like half an hour later my score jumped big.
[General Topics] Emre67511:
Which is the best setting for most battery life ?
[General Topics] Macusercom:
It really is confusing as with zRAM disabled (and RAM plus being enabled in OneUI 4.0) there is nothing listed in "cat /proc/swap" or with "free -m". The system reports 0 swap when zRAM alone is disabled. Meaning I can't confirm whether changing/disabling RAM plus actually does anything at all when zRAM is manually disabled.

Changing the setting from 2 GB to 8 GB or to 1 MB could do nothing at all. I haven't found a way to check RAM plus (checking the global variable or Samsung's device care could mean nothing at all, it could simply report the setting without any actual changes made to the behaviour).

The system itself doesn't report any available RAM plus swap so either Samsung uses weird stuff that isn't recognised by Linux or it is snake oil

Here is the result at stock OneUI 4.0 (RAM Plus at 4 GB default & zRAM 4 GB according to Franco kernel manager):

Disabled zRAM completely (but RAM Plus still at 4 GB as standard):
[General Topics] Guan Yu:
Enable swap and disable zram ? whats the point ? Ram plus is just swap , however android is not optimised for swap so enable it will decrease phone performance and will not provide better multitasking
[General Topics] Guan Yu:
ram plus on my xiaomi is located in /data but i cant check it too
[General Topics] Hamid Chikh:
Try best performance tweaks
[General Topics] Hamid Chikh:
Thank you, i'll add these to my post
[General Topics] Hamid Chikh:
Try and see what suits you best, waiting for your feedback
[General Topics] Hamid Chikh:
That's not related to battery life
[General Topics] Hamid Chikh:
Read again, it's enabled by default, OP helps disable it.
[General Topics] robnitro:
It's confirming that there's no real disk based swap. I hate when software companies lie.

It's all zram, and we had default 4g zram (using free -h) even before the Android update that added the "ram plus" bullcrap.

If they only let me make my own freaking swap without root.

Disk based swap is great in that barely used apps won't hog ram as standby memory.

Also it's pretty annoying how these later Android versions are huge memory hogs.

After boot, it's at most 4gb free.. Nothing opened except the normal background processes. WTF?
[General Topics] Macusercom:
Yes. Every independant tool that is available does not show anything else than zRAM. It's odd that zRAM seems to scale separately when RAM plus is changed. That is still a mystery to me. As long as I can't confirm RAM plus is doing anything, I'll set it to 2 GB, disable zRAM and leave it as is. My philosophy is that if there is no observable difference, don't mess with it as it just becomes snake oil.

That so much RAM is reserved is due to processes being cached. Not having a lot of free RAM is no bad at all (it can even lead to benefits). But not having freeable RAM when you need it is when you get into issues.

I still would wish to have any information on why 10.3 GB RAM is available on a 12 GB device. Everyone calls it "system usage" but Android itself (e. g. free -m) reports 10.3 GB and Android's core processes are shown within that 10.3 GB. I assume 1.7 GB is reserved for the video memory but Samsung should market this more clearly.

It is impractical to have separate RAM for Samsung core apps and would be very concerning if this were the case. That would mean these processes run outside of the whole Android system. Just like if you add 32 GB of RAM into your Windows PC and Windows shows 28 GB installed (while Windows takes up 3 GB leaving you with 25 GB). There is only one situation I know that happens: if you have an iGPU and a some RAM is reserved specifically for video memory.
[General Topics] jojos38:
Android puts in cache many apps that you "tend to use" so that if you open them they open much faster, it's mostly what fills your ram. I don't know if this is a good thing or not but this ram can be cleared at any time by the system so there is no need to worry about it

You can see them in Settings -> Developer options -> Running services -> [3 dots] Show cached processes

That being said, if you remove those cached apps from the total ram usage it's still quite high so I dunno what fills it for the other part
[General Topics] George Musat:
Wait WHAT
[General Topics] George Musat:
If I do what is in OP I will still can pay with google pay?
[General Topics] Kris_b1104:
NO BLOATWARE REMOVED. I reinstalled all the bloatware I previously removed and then updated my phone to One UI 4.1 AVC8. This is with no bloatware removed, so imagine what it'll be when I disable over 100 system apps.

I did however, follow all the ADB commands that are suggested in OP. I'm running on FHD+, Adaptive Motion Smoothness (via Galaxy Max Hz app), Processing speed set to Optimized. Enabled CPU Responsiveness, enabled performance limit. I know it sounds crazy, but I get the best of both worlds with the performance limit ON and CPU Responsiveness ON, the phone is insanely fast and battery is great. I tried different combinations and this has been my best result in terms of battery life and I'm still at 42%. My benchmarks are still 1200, 3400.

No power saving. No adaptive power saving. Adaptive battery off. No adaptive brightness. I have a bunch of apps in sleep and deep sleep. Mostly WiFi since I work remotely and some light LTE usage. I turned off 5G. I manually set RAM Plus to 1GB. Dark Mode and my Location are on at all times.

I think the adb commands help more than debloating the phone based on my results.

S22 Ultra US Unlocked Snapdragon 512gb.
[General Topics] marko94:
How to solve Google play services battery drain ?
[General Topics] Hamid Chikh:
Fix is in OP
[General Topics] marko94:
I know, I did that already bit it is still high
[General Topics] George Musat:
Ikr? I have this too
[General Topics] Cellzor:
Have any tests been done seen to battery time gain when underclocking the SoC? I.e. what are the gains like?
[General Topics] Hamid Chikh:
Better battery.