SRAM/DataOnEXT or NativeSD hybrid

Discussion about anything related to Android or this forum here.
Moderator: Forum Moderator

SRAM/DataOnEXT or NativeSD hybrid

Postby soren » Mon Jul 22, 2013 6:38 pm

Hi,

I think it would be great if there was an SRAM/DataOnEXT or NativeSD hybrid. I used to try Barebone CM7 V2b SRAM and it's super fast. And I guess it will be even faster if it keeps data in the SD card structurally instead in a data.ext4 file. What do you think about this?
soren
Senior Member
 
Posts: 303
Joined: Mon Jul 08, 2013 12:41 pm
Has thanked: 160 times
Been thanked: 86 times

Advertisement
 

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby symbuzzer » Mon Jul 22, 2013 6:59 pm

soren wrote:Hi,

I think it would be great if there was an SRAM/DataOnEXT or NativeSD hybrid. I used to try Barebone CM7 V2b SRAM and it's super fast. And I guess it will be even faster if it keeps data in the SD card structurally instead in a data.ext4 file. What do you think about this?


Is data.ext4 in fat partition faster than ext4 based data partition?
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby soren » Mon Jul 22, 2013 7:11 pm

symbuzzer wrote:Is data.ext4 in fat partition faster than ext4 based data partition?

I believe ext4 based data partition is faster because the system can access the files directly. But SRAM is very fast because the system is on the RAM.
soren
Senior Member
 
Posts: 303
Joined: Mon Jul 08, 2013 12:41 pm
Has thanked: 160 times
Been thanked: 86 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby symbuzzer » Mon Jul 22, 2013 7:17 pm

soren wrote:I believe ext4 based data partition is faster because the system can access the files directly. But SRAM is very fast because the system is on the RAM.


So,Is System on RAM, Data on Ext4 best combination, right?
On System on RAM method, is battery draining faster than our known ins. methods?
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby soren » Mon Jul 22, 2013 7:25 pm

symbuzzer wrote:So,Is System on RAM, Data on Ext4 best combination, right?
On System on RAM method, is battery draining faster than our known ins. methods?

Yes, I think so. Regarding the battery, I'm not sure. Barebone CM7 is very nice but I didn't use it for long because I wanted to use the latest version of Android and Barebone CM7 supports only en_GB/US locales. But when I used it, I didn't feel that the battery drained fast at all.
soren
Senior Member
 
Posts: 303
Joined: Mon Jul 08, 2013 12:41 pm
Has thanked: 160 times
Been thanked: 86 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby symbuzzer » Mon Jul 22, 2013 7:31 pm

soren wrote:Yes, I think so. Regarding the battery, I'm not sure. Barebone CM7 is very nice but I didn't use it for long because I wanted to use the latest version of Android and Barebone CM7 supports only en_GB/US locales. But when I used it, I didn't feel that the battery drained fast at all.


I liked this method in theory, I will try this rom at weekend. Thanks for informing me about this method. I hope, devs will write their opinions and critics in here.
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby symbuzzer » Mon Jul 22, 2013 8:00 pm

symbuzzer wrote:
So,Is System on RAM, Data on Ext4 best combination, right?
On System on RAM method, is battery draining faster than our known ins. methods?


I thinked again. Maybe System on RAM + Data on Nand or System on Ram + Data on Ext4 + Dalvik on Nand methods are faster.
symbuzzer
Forum Moderator
 
Posts: 320
Joined: Mon Jun 24, 2013 7:05 am
Country: Turkey (tr)
Has thanked: 176 times
Been thanked: 168 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby Robbie P » Mon Jul 22, 2013 8:02 pm

symbuzzer wrote:
Is data.ext4 in fat partition faster than ext4 based data partition?

It should be faster with data on ext4 partition as soren says. Else NativeSD would be the same speed as sd builds with data and system in image files on fat32.
I think it is a good idea to have some system folders permanently in ram.
Battery drain should be less too as there is less sdcard access.
HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14
User avatar
Robbie P
Recognized Contributor
 
Posts: 154
Joined: Tue Jun 25, 2013 12:04 am
Location: London
Country: United Kingdom (uk)
Has thanked: 127 times
Been thanked: 124 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby Odysseus » Wed Jul 24, 2013 10:02 am

I'm new to these forums, but have more than a decade of experience running Gentoo Linux. I'm concerned that these phones are too resource limited to use this technique. With only 1/2 a gig of ram and no swap, running most of the system in memory wouldn't leave much for anything else and could quickly lead to a situation where apps are starved and crash especially when multiple apps are opened simultaneously. This of course would defeat the intended purpose.

This seams like it would be a more viable solution for a newer phone with more resources available, but I'd love to see the results of such an experiment on the HD2 though I wouldn't want to try myself.
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

Re: SRAM/DataOnEXT or NativeSD hybrid

Postby Robbie P » Wed Jul 24, 2013 11:18 am

Odysseus wrote:I'm new to these forums, but have more than a decade of experience running Gentoo Linux. I'm concerned that these phones are too resource limited to use this technique. With only 1/2 a gig of ram and no swap, running most of the system in memory wouldn't leave much for anything else and could quickly lead to a situation where apps are starved and crash especially when multiple apps are opened simultaneously. This of course would defeat the intended purpose.

This seams like it would be a more viable solution for a newer phone with more resources available, but I'd love to see the results of such an experiment on the HD2 though I wouldn't want to try myself.

Very true, the barebone CM7 SRAM build mentioned in OP has a system of around 100Mb, leaving around 400Mb (less some for graphics I think) for android to use. Anything much larger would make the build unuseable and very laggy. boonbing did make an initrd.gz in the Portadroid thread (http://forum.xda-developers.com/showthr ... ?t=1094372) which only put 100Mb of a larger system image into RAM, although I am not sure whether it was the first 100Mb or whether system folders were cherry picked. I have uploaded it here http://d-h.st/xz6
I did notice in init that it checks whether an sd-ext image exists, perhaps this could be modified for NativeSD
I am a bit of a linux noob still ;)
HTC HD2 (EU)
SPL 2.08. HSPL3;
Magldr 1.13 thanks bepe & Cotulla
On NAND - WP7.8 pdaimatejam v8.8 thanks to pdaimatejam, DFT, YukiXDA, xboxmod etc
On SDcards - Numerous Android SD builds & NativeSD ROMs (Thanks boonbing, Xylograph, securecrt & Almighty tytung!)
Radio 2.15.50.14
User avatar
Robbie P
Recognized Contributor
 
Posts: 154
Joined: Tue Jun 25, 2013 12:04 am
Location: London
Country: United Kingdom (uk)
Has thanked: 127 times
Been thanked: 124 times

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron