yashsingh1/xdaforums huggingface dataset:
[TouchPad General] DoubleStuff:
I just had my best experience with the HP TOUCHPAD in a long time during my investigation with memory. I have tested Nougat, PIE both DU and Evervolv, but this build with JC Sullins KitKat is so far the only ROM to pass my "Memory Stress Test". Here was the build and the order I installed:

1) cm-11-20151116-SNAPSHOT-jcsullins-tenderloin

2) HpTp_MAX_1782_CPU_Universal_Optimize_Swap_CM_11_jcsullins_KitKat

3) ROM_Reducer_CM_11_jcsullins_KitKat

4) open_gapps-arm-4.4-pico-20191006

5) SR5-SuperSU-v2.82-SR5-20171001224502

Here is the details of my "stress test"

1) Internet on and connected to wifi.

2) Install and run a podcast on Castbox via internet streaming, not a downloaded MP3.

3) Install and run RunRace 3D game.

Take a look at the snapshot of memory, while I was listening to a podcast and playing runRace 3D and the player was jumping with all the power, and his timing was perfect.

The total RAM memory in this ROM is now: 927392 KB thanks to HP_TOUCHPAD.

And notice the SWAP is 516092 KB, and only 40% is being used at 193744 KB

During my peek usage RunRace 3D was taking 400,000 KB and podcast 57,000 KB, but the key is with this ROM the "free memory" was always staying above 40,000 KB like [MENTION=8005714]HP_TOUCHPAD[/MENTION] once said, "The Tablet is setup to maintain a minimum of 40 MB to keep Android running otherwise the App will keep using more App and the Tablet will reboot."

During my testing of other ROMs, the "free memory" always dips below the 40 MB mark and either the tablet: reboots, freezes, or pop up message saying, "Application wants to stop"

In my opinion I think JC Sullins did such a quality job on this KitKat ROM that it "manages" memory better than the others. Yes HP_TOUCHPAD has been able to unleash more RAM into the tables, but what does that matter, if the ROM and the applications it runs, continues to eat more and more RAM and does not manage it correctly.

For example lets say a ROM had 800 MB of RAM, and some certain apps at that time eat

760 MB of it. Then HP_TOUCHPAD unleashes 200 MB more of RAM, so now the ROM has

1000 MB of RAM, but the same apps now eat 960 MB of RAM, what has been gained? But JC Sullins seamed to have create a ROM that "manages" the memory better, and knows which apps to kill at the right time.

I would like to hear what others think and inform me better, and what experience they are having with their ROM when running the "stress test" 1) CASTBOX and 2) RUN RACE 3D

Please share your ( free -h ) and ( top ) screen shots. See mine attached.

For the more "shiek geeks" I also attached a "dumpsys meminfo" around the same time frame

of peek usage.

.....

..
[TouchPad General] smithylovestouchpad:
Sounds promising. I have a request since you are good at measuring available memory. Complete clean installation without Rom Reducer and run your same tests again. I just don't like how the tablet behaves with all the .apk's removed.

BTW, have you looked at battery usage using 3C's Battery Monitor Widget? What differences in memory do you see without Rom Reducer? Like a side by side comparison. Here is with R/R and without R/R.

Thanks, Smithy
[TouchPad General] DoubleStuff:
Well I can take the current install I have, and just use the zip called "ROM Restore" and it will take the apk's that the reducer hid, and restore them back to the proper directories. There is also a zip called "Remove Rom apps" and that will take the apk's that are hidden, and permanently remove them. So to run the test you requested, I just have to restore my apk's, then perform my patented "stress test" once again. I don't expect too much difference. I bet we will see a difference in TOTAL RAM, in my current setup its about 927 MB, but I think the apps will eat away at it until

there is only 40 MB left.

Well under HP_TOUCHPADs modified settings, its more about performance than battery saving. So I am sure the battery is burning up more than the 5 uA's that we were used to with the "original settings". Remember what HPTP said, always leave your tablet charging in a docking station, and don't worry about installing battery monitor.

That being said I don't have a docking station, but the pennies we lose on the battery burning tons of uA's is still minimal. But I will try a test for posterity, and so its documented. Also after this test I am going to install the 1836 Hz O/C. And once HPTP has it ready the 2.5 GHz O/C, he is currently hard at work on his MAX eXtreme settings coming soon to a theater near you!!!
[TouchPad General] smithylovestouchpad:
You're right. I forgot that there is a zip to restore what Rom Reducer removes. Just be sure to reboot before running your tests. I would still be curious what kind of battery usage is going on when the TouchPad is asleep.

Smithy
[TouchPad General] DoubleStuff:
Here is a side by side compare of JC Sullins KitKat with R/R "hidden" and with R/R installed.

As I thought, the numbers are essentially the same, even the RAM is the same because even though those apk's where "hidden" they were still taking up space in some directory.

So I guess it would be no issue if you want the APK's installed, but it would be nice to do a test with the APK's actually removed from the tablet using "Remove ROM reducer" zip.

I just added a 3rd test with all APK's removed, and even though it did not change

the over total RAM, you can see I have more "free memory" at peek usage.

Essentially 41 MB VS. 44 MB, so it bought me 3 MB of running RAM.
[TouchPad General] smithylovestouchpad:
Interesting. I was expecting that some of the apk's that R/R hides are not able to function when Android is booted up, thus not using memory resources. That is what I understood the function of R/R was. Why don't you validate your premise and flash the "Remove ROM reducer.zip"? You know where R/R hides the apk's right? I believe HPTP explained that in one of his posts.

Smithy

OK, my bad. I did not see the third test. So when you get some data from Battery monitor Widget, let us know. Realize it will take 24 hours or so to get enough readings.
[TouchPad General] DoubleStuff:
I was just on a long phone call with a friend after I installed 3C Battery Monitor Widget and it burned

-7 mA every 10 minutes while it was off for about 1.5 hours. I set it up at 6611 mAh estimated capacity.

I will see what it does overnight, maybe with a nice screenshot tomorrow. I think I am going to install

the 1836 Hz overclock and do some more testing!!
[TouchPad General] DoubleStuff:
I just had my best "stress test" today! I installed the 1836 Hz. Overclock for JC Sullins KitKat all else the same as other tests, I have removed all the standard APKs. And this test was so smooth, no hiccups, the Run Race 3D ran so smooth

and the adds would play with audio, and I still heard my Podcast too. Some things to notice from the attachment of the test.

1) RunRace 3D was using the most RAM ever, about 418,000 KB, more that my other tests, but still so smooth

2) Notice that the "free memory" is not hovering anymore near the critical 40,000 KB mark, the Touchpad has room to breath with 75,000 KB of free memory. Still using around 40% of the SWAP, so there is no need to get 1 GB of SWAP yet, but I might try it.

I am testing this all on Windows, I installed ADB using this link on YouTube:

Install ADB on Windows

I installed it on the C: drive, essentially C:\adb\ then I added C:\adb\ to the PATH variable.

So then I have to open a command window and type these commands, once I connect my HP TOUCHPAD

to the PC with the cable.

adb devices -l ( This command will show your HP TOUCHPAD connected ) ( -l is lowercase L )

adb shell ( This command will open a shell command so that you can see memory used by Touchpad )

Then to get memory for KitKat I type:

free -h

top -s rss | more ( This command will be different for new Android versions. maybe: top -s 6 | more )
[TouchPad General] DoubleStuff:
Hello Smithy, below you will find my screenshots of the 3C Battery Monitors reading from last night. They are better than I expected, because in my latest Nougat and PIE installs, sometimes batteries would drain overnight, and I have seen some comments on these boards saying the same thing. But with all due respect, that could be because of bad batteries, or not having flashed A6 for a while, although I have.

Again I have to give some kudos to JC Sullins KitKat ROM, this guy was good and quality is build though and though this ROM, and now with the addition of HP_TOUCHPAD's memory and performance tweaks, Sullins ROM can handle it. ( just a FYI during the sleep battery test, internet was on, and bluetooth was off )

Do you see the same battery drain stats in your KitKat "vanilla" ROM? Also can your "vanilla" ROM pass my

patented "stress test"?

To all viewers, Smithy has been known to call his JC Sullins KitKat ROM w/Original Settings his "vanilla ROM"....just to explain the terminology to the viewers. ( all 4 or 5 or them )
[TouchPad General] smithylovestouchpad:
I'll have to say that my two vanilla installations do not get that good of a sleep rate. I'll have to try out your stress test setup and see how it goes. May be a few days, got a lot on my plate at the moment.

Smithy
[TouchPad General] smithylovestouchpad:
------------------------------------------------------------Snip----------------------------------------------------------------------------------------

2) Notice that the "free memory" is not hovering anymore near the critical 40,000 KB mark, the Touchpad has room to breath with 75,000 KB of free memory. Still using around 40% of the SWAP, so there is no need to get 1 GB of SWAP yet, but I might try it.

------------------------------------------------------------Snip----------------------------------------------------------------------------------------

I'm surprised you have not tried the 1 GB Swap zip. Wouldn't you want the maximum amount of swap available. I'm guessing that the swap file eats into your storage. So with a 32 GB TouchPad, not that concerned with the loss of a half gig of storage if you get better performance.

You have peaked my interest that I will probably try this one last time. But if it is glitchy, it's gone. You have not mentioned any problems.

I did try your stress test on a plain vanilla TP and with in a few seconds of starting to play Run Race 3D, Castbox quit playing.

Have you tried pushing it to the 1836 speed?

I'm also going to try an old Gapps zip that I had squirreled away, gapps-kk-20140606-signed. I'm not particularly fond of the Open Gapps Pico version. I'm sure there will be lots of apps that need updated since I'll be installing that old Gapps. I'll let you know what I find when I'm done.

Smithy
[TouchPad General] DoubleStuff:
Yes my most smoothest "stress test" was with the 1836 Hz overclock, I posted that a coupled of posts up. Yes you saw it since I was only using 40% of the SWAP anyway, I did not feel a need yet to try 1 GB. I am a little confused on SWAP, I think its RAM so it does not use any of the 32 GB does it? RAM memory is a little different than regular storage memory, it has read/write capabilities, but I am still learning, so if somebody can comment about it that would be nice. Difference between RAM, SWAP and the 32 GB of data storage.

I think I am going to keep this setup for awhile, because its the best one I had in a long time, with my stress test

I still had 75,000 KB of "free RAM" that was a record for me. I am keeping this setup, not going to mess with 1 GB of swap. I have 2 other touchpads I can play with, when I get back from vacation.

But it could be that this particular Touchpad is just "build better", I heard different companies build these HP Touchpads that is the "hardware" portion, and maybe this one is just super-duper, because it can handle the 1836 Hz. Its waiting for HP_TOUCHPAD to get the 2.5 GHz!!! O/C

I posted a YouTube video about installing ADB on your Windows machine a couple posts up, it would be nice

if you did a "stress test" to see how much "free RAM" you have left. I guess your "Vanilla KitKat" could not hold

up to the "stress test". I wonder how much "free RAM" it had when Castbox podcast quit playing. Those would

be interesting statistics....I would guess it went down to 25,000 KB, and gave up the ghost.
[TouchPad General] smithylovestouchpad:
Now that you mention it, I do believe I did read that Swap is somehow placed in Ram as a compressed file or something like that. But how do you squeeze a GB of Swap and run Android and programs out of 1 GB of Ram? I suppose if certain Android functions and programs can be off-loaded to Swap so your stress test or certain apk's that I like to use, run better, then that will be fine.

Smithy
[TouchPad General] DoubleStuff:
you saw my previous post about 3C Battery usage, well in this post I will talk about the 3C Battery Monitor

Widgets Memory usage on the HP TOUCHPAD. First thing is to note that using the Linux command "top" the 3C BMW shows up as ccc71.bmw. And with 3C installed and collecting information in the background, it was using around 36,000 KB of RAM ( which is about 4% of Total RAM ), and with it on and a user reading results from the 3C app, it uses around 80,000 + 36,000 = 116,000 KB of RAM. All my results were from me running Linux commands in a Terminal Emulator on the Touchpad.

So I installed the eXtreme settings ( and 1836 KHz overclock ), and with 3C battery Monitor in the background, along with Terminal Emulator in background ( jackpal.androidterm ) I was still able to perform the "stress test" of running a Podcast and RunRace 3D, although it took a couple attempts because the Android OS kept wanting to close RunRace 3d because its a memory hog. I will attach my results below, and in the picture I list the apps that i know the names of.

This is why HP_TOUCHPAD says don't run 3C battery Monitor in the background because it takes more RAM from playing your favorite games, although my rugged HP TOUCHPAD with JC Sullins KitKat with HPTP's eXtreme settings was able to handle the extra load with success. Now like I said the first couple tries Android OS wanted to close Run Race 3D, and a few games ran a little sluggish, but once it got the memory sorted out, and settled, it was fine.
[TouchPad General] smithylovestouchpad:
Boy, you are getting to be a real expert at this. Good to know that if you want to run your stress test you should uninstall BMW. But if you want to know what kind of battery usage you get when your TP is asleep, you need BMW.

I now have the max settings installed and I'm running it at 1782. So far I've had several random reboots and a few app force close episodes. Have not been able to run your stress test successfully. You are right, Run Race 3D is a hog. I'll try uninstalling BMW and see what happens.

Have you been paying attention to what other apps running in the background that could be disabled to free up Ram?

Smithy
[TouchPad General] HP_TOUCHPAD:
It is very difficult to get the real time memory information on KitKat as top does not refresh on the same screen, but I was able to do it with PIE, more on that later.
[TouchPad General] HP_TOUCHPAD:
When the user is using the Tablet, is set to provide as much power as it can. More power requires more energy, but once the Tablet is place in deep sleep ( pressing power ) stand by, it consumes the same as the original ROM, that setting does not get changed from any ROM.
[TouchPad General] HP_TOUCHPAD:
The available free memory is constantly changing and never stays the same, there is a lot happening under the hood in Android OS to get a definite free RAM at the moment.
[TouchPad General] HP_TOUCHPAD:
It is possible that the reading is more accurate as the CPU is set to 1.8GHz and is updating the information closer to real time.
[TouchPad General] HP_TOUCHPAD:
As mentioned before, the settings of Deep Sleep is coded in the Kernel and is unchanged. The ROM while in Deep Sleep 192MHz should perform the same regardless of how high the working frequency is set up ( example 1836 , 1.8GHz)
[TouchPad General] HP_TOUCHPAD:
Yes exactly you nailed it !

If the Tablet is constantly ON and charging, then there is no waiting time to settle.
[TouchPad General] HP_TOUCHPAD:
Android under the hood

[MENTION=8115234]DoubleStuff[/MENTION]

You had a great idea on how to demonstrate Android memory allocation while using the Tablet.

My suggestion was that it could be almost impossible to achieved such task as the CPU and the resources of the Tablet are very limited.

As I was exploring ways to possibly demonstrate how the Tablet works with the HpTp_MaXtreme settings, I found something.

Then I prove myself wrong and once again, where there's a Will there's a Way.

The following video was created to honour [MENTION=8115234]DoubleStuff[/MENTION] for his great explorations, discoveries and learning skills in a short amount of time using the HpTp.

The setup is Over Kill and the Tablet is working at its maximum by running Android with all Apps plus providing real time info and the screen to be recorded.

The Tablet was set up as followed:

Evervolv PIE

ROM Reducer

HpTp_MaXtreme_1836

open_gapps-arm-9.0-super-20191006.zip ( 884 MB )

The command top was use to capture the 5 most active process refreshing every second and Mem selected to display from high to low.

top -d1 -m5

The following youtube video is HD 720, it must be view in a Desktop computer with a minimum resolution of no less than (x) - 1050

Click HERE for Evervolv and top command real time video
[TouchPad General] DoubleStuff:
Yes, yes HP_TOUCHPAD that was my vision to have that split screen and real time video and memory consumption. Thanks for doing that in honor of me :victory: , it means alot to me, and I will continue to devote my time to more learning.

To you and Smithylovestouchpad, I am very busy this weekend and will not be able to read and comment on

all the posts that came after my pictures of memory yesterday morning, but once I have more time. I have some questions and comments to render. Talk to you guys soon.
[TouchPad General] HP_TOUCHPAD:
Look at the posted video that shows Evervolv PIE with Super Gapps. The RAM never drops below 40 MB and nothing gets kills. It takes a while to load the data from swap to RAM ( lag ). The Tablet never reboots, it may show a black screen while is moving data from RAM to Swap and vice versa.

The Swap Settings ( applied to ALL ROMs ) control completely how Memory is managed in Android. Just by creating a Swap Partition or Swap file does NOTHING. If the correct settings are not applied nothing will work.

The Universal Optimize Settings are not only Swap related, go to this guide first page and read that section

https://xdaforums.com/hp-touchpad/general/hp-touchpad-optimize-android-swap-t3901773

HpTp Universal Optimize Swap Settings

KitKat and Lollipop ROMs use an old kernel and never where setup to do any Swapping, zRAM is not even active. Those ROMs run completely out of RAM with Low Memory Killer.

It surprised me that the swap module was in the Kernel and that those ROMs do use swap, but is set to swap at 10 % otherwise it will reboot installing or uninstalling Apps.

For the KitKat and Lollipop ROMs not to reboot, any system modification ( installing Apps, or uninstalling ) needs to happen on a fresh boot, then it will not reboot.

All other ROMs are more resilient and never reboots by installing or uninstalling Apps. The original settings on those ROMs use zRAM. It uses about 130 MB or RAM, compress it and use it as a swap file ( in RAM ).
[TouchPad General] DoubleStuff:
Thanks for taking the time to answer the questions, in the Q & A session. I appreciate it, and I am sure others after me will look at this one day in the future and say, "Wow, that HP_TOUCHPAD was a good guy to help others, and to think outside the box as he does is very wonderful, to give the tablet new life"
[TouchPad General] HP_TOUCHPAD:
I strongly believe, knowledge is power and civilisation will only advance in the right path if the information is given to all, for a better tomorrow.

It has been a very unforgettable learning experience of having a truly open Device (HP Touchpad) with all the great Android ROMs made possible by amazing Developers and then been able to share it.

All the settings applied to the HpTp can be also applied to any low RAM (1GB ) Android device and it should perform very similar. For devices with more than 2GB of RAM the gains will be even more.
[TouchPad General] HP_TOUCHPAD:
Mirror HpTp screen to PC

Take a look at this software, it was the one I used to record the video with top.

https://github.com/Genymobile/scrcpy

It works with Android version 5.0 ( Lollipop ) and higher.

The Tablet can be control from PC with mouse and keyboard, no special App to install in Android.

After the Tablet screen is on PC, open a terminal window and issue the Adb Shell top.

Position the two windows any way you want it and use a screen recorder on PC .

The final video is created with no need to edit.
[TouchPad General] DoubleStuff:
Thanks HP_TOUCHPAD I was able to download the scrcpy zip file for Windows 10 64 bit and was able to see my HP TOUCHPAD, and both my LG phones on my Windows PC.

Its sad that it will not mirror the KitKat 4.4 by JC Sullins. I heard there is a SCR PRO that may do it, and also has sound, but I did not investigate, because scrcpy will work fine with my Nougat, Oreo and PIE memory testing in the future. I will probably do the screen record with a software package called "OBS".
[TouchPad General] HP_TOUCHPAD:
The limitations comes from the Android version Kitkat, older OS does not provide the new technology developed in newer versions.

To record Audio this is use, but only on Linux:

https://github.com/rom1v/usbaudio

The Kitkat screen can be recorded in the tablet using the command screenrecord, but is limited to 3 minutes.

https://www.cnet.com/how-to/how-to-record-your-screen-on-android-4-4-kitkat/

There are Apps that will do it:

https://play.google.com/store/apps/details?id=net.screenrecorder.videorecording&hl=en_US

By using scrcpy makes the recording easier for the Tablet as most of the processing is done by the PC and is all done at one time, no need for editing and the information display is sync in real tme.

Also I forgot to mentioned, the command free -h does not have any effect on Kitkat. The option -h ( Human readable ) is to display the information in MB.
[TouchPad General] smithylovestouchpad:
I have a question. I have installed Sullin's CM11 with 1GB swap and 1782 max flashed. I have some comments to post later as I want to test something first. If I flash the "Original Settings Swap Disabled.zip" so I can test something, can I then flash the 1782 max.zip to put things back like they were?

Smithy
[TouchPad General] DoubleStuff:
That is the way I understand how to do it. And after you flash any file dealing with SWAP or disabling SWAP, I usually open a Terminal Emulator and type free -h, and it will show you how much RAM and SWAP you have installed on Touchpad. Maybe others can chime in to confirm.

on another subject.

Too bad KitKat don't work with the program Screen Copy ( scrcpy.exe ) it only works with Lollipop or later, so I might make some videos comparing JC Sullins Lollipop with PIE, because I am have some question about how SWAP is working. But believe me JC Sullins KitKat is the tops!!! ( for the purposes of my patented "stress test" )
[TouchPad General] smithylovestouchpad:
Thanks, One of the TP's free -h works and shows that not much of swap is being used. The other one free -h won't work. When I enter it I get "CANNOT LINK EXECUTABLE: cannot locate sunbol"stpcpy"referenced by "resize"....."

What's up with that?

Also, I thought there was a way to do a screen grab on the TouchPad. Can't seem to find the magic on that.

Smithy

Update: Actually, I just realized that I get "CANNOT LINK EXECUTABLE: cannot locate sunbol"stpcpy"referenced by "resize"....." when I open terminal emulator on this TP.