Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,619 Members 52,155 Now Online
XDA Developers Android and Mobile Development Forum

Quadrant with ext4 partitions

Tip us?
 
AntonX
Old
#1  
Senior Member - OP
Thanks Meter 1017
Posts: 423
Join Date: Nov 2006

 
DONATE TO ME
Default Quadrant with ext4 partitions

Those of you who followed this thread http://forum.xda-developers.com/show....php?t=1141550, and went all the way backwards to RFS from ext4, you probably made a mistake. ext4 is objectively a better file system, it just may be configured to run somehow slower, although more secure. This security is needed when the drive can be disconnected on the fly or may suddenly lose power, which is obviously not applicable to our phones as the card is inside and nobody normally removes it with the phone on.

Anyway, I looked how Voodoo mounts the ext4 partitions and found couple of things that can be improved. First of all, "noatime" option should be set to all partition wherever possible. This option tells not to ever update last access time upon every read operation. It is actually being set like this with one of the init.d tweaks already. The other option has way bigger effect. It controls delayed allocations, the allocation mechanism that is one of the biggest improvement of ext4 over ext3. For some reason Voodoo sets it to "nodelalloc" for \data partition. As soon as I changed it to "delalloc", my Quadrant score shot from about 1700 to over 2300.

Here is how to fix it, IF YOU ARE STILL ON EXT4 FOR ALL 3 PARTITIONS. If you moved back to RFS this will have no effect.

If you don't use init.d, then you have to start using it You'll have to either modify one of the existing init.d scripts, or write you own like this:

--
#!system/bin/sh

for k in $(busybox mount | grep -E 'relatime|nodelalloc' | cut -d " " -f3) ; do
sync
busybox mount -o remount,noatime,delalloc $k
done
--

Those who already use init.d tweaks should modify the S98edt_tweaks file. Open it with an editor and change the "for" loop in the beginning (the one that deals with remounting partitions) to my code. Save, reboot, and try Quadrant now.

I also recommend removing the "fix" that extends SD read-ahead cache. Comment out the related code, you can easily find it in this file. This cache can bring more troubles than benefits, but well, it's up to you.

Btw you may as well remove code in 20sombionixInit file that deals with the same "noatime", the part that does "for k in $PART;..., done;", it's just redundant.
The Following 6 Users Say Thank You to AntonX For This Useful Post: [ Click to Expand ]
 
RaverX3X
Old
#2  
RaverX3X's Avatar
Recognized Developer
Thanks Meter 5272
Posts: 4,281
Join Date: Jun 2011
Location: Cali

 
DONATE TO ME
If you really wana back up your claim id suggest posing benchmarks. U can also ask dr Honk as hes the one that deved the kernel with voodoo lag fix and ext 4 and as i previously stated most the tweaks are directly from darkey and Teamwhiskey. Granted some can be changed like sd cache it can be commented out smaller and or larger i never said it was the end all be all of use this or else by all means experment. But no offense your just trying to say ext 4 is better not saying it is and isnt but its been stated before and beaten tod death its per case basis not everywhere is it better and in some places it is.



So don't you worry your pretty little mind
People throw rocks at things that shine
And life makes love look hard
The stakes are high, the water's rough
But this love is ours
 
AntonX
Old
#3  
Senior Member - OP
Thanks Meter 1017
Posts: 423
Join Date: Nov 2006

 
DONATE TO ME
Here is my score now. Running stock KD1 with Bali 3.1, OC-ed to 1.2 MHz. All partitions are ext4, here is how they mounted:

--
rootfs on / type rootfs (ro,noatime)
proc on /proc type proc (rw,noatime)
sys on /sys type sysfs (rw,noatime)
/dev/block/stl9 on /system type ext4 (rw,noatime,barrier=0,data=writeback,noauto_da_all oc)
/dev/block/stl11 on /cache type ext4 (rw,noatime,barrier=0,data=writeback,noauto_da_all oc)
/dev/block/stl10 on /data type ext4 (rw,noatime,barrier=0,data=ordered,noauto_da_alloc )

tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
none on /acct type cgroup (rw,relatime,cpuacct)
/dev/block/stl6 on /mnt/.lfs type j4fs (rw,noatime)
tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/stl3 on /efs type rfs (rw,nosuid,nodev,noatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8)
/dev/block/vold/179:2 on /data/sdext2 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime ,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_uti me=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
...
--

Btw this is actually another proof that Quadrant don't mean much and nobody should pay much attention to them. The score just should not have jumped that much because of a single change to file writing option.
Attached Thumbnails
Click image for larger version

Name:	snap20110629_185634.jpg
Views:	415
Size:	28.7 KB
ID:	641257  
 
dsexton702
Old
#4  
dsexton702's Avatar
Recognized Developer
Thanks Meter 2269
Posts: 2,478
Join Date: Apr 2011
Location: Las Vegas

 
DONATE TO ME
Hahahahahaahahahshahshagshs


sent from my sgs4g 2.3.3, finally

Andromeda Crew In Development - ACID

Follow me: Twitter

i love to code
 
RaverX3X
Old
(Last edited by RaverX3X; 30th June 2011 at 12:26 AM.)
#5  
RaverX3X's Avatar
Recognized Developer
Thanks Meter 5272
Posts: 4,281
Join Date: Jun 2011
Location: Cali

 
DONATE TO ME
Let me ask you who are you? Just curious

Sent from my SGH-i9100 using XDA Premium App



So don't you worry your pretty little mind
People throw rocks at things that shine
And life makes love look hard
The stakes are high, the water's rough
But this love is ours
 
RaverX3X
Old
#6  
RaverX3X's Avatar
Recognized Developer
Thanks Meter 5272
Posts: 4,281
Join Date: Jun 2011
Location: Cali

 
DONATE TO ME
here mines still bigger
Attached Thumbnails
Click image for larger version

Name:	screenshot_10.jpg
Views:	378
Size:	53.5 KB
ID:	641290  



So don't you worry your pretty little mind
People throw rocks at things that shine
And life makes love look hard
The stakes are high, the water's rough
But this love is ours
 
AntonX
Old
#7  
Senior Member - OP
Thanks Meter 1017
Posts: 423
Join Date: Nov 2006

 
DONATE TO ME
Quote:
Originally Posted by RaverX3X View Post
Let me ask you who are you?

Sent from my SGH-I9000 using XDA Premium App
Is this question for me or for dsexton702? If for me, I'm a software engineer, actually have been for over 20 years, but we are in medical devices field. I started working with computers long time ago in PDP-11 era as a tech then OS engineer, so I pretty much know (or maybe feel ) how this things work inside.
juan16h Old
#8  
Guest
Thanks Meter
Posts: n/a
Quote:
Originally Posted by RaverX3X View Post
here mines still bigger
how did you get that?
 
RaverX3X
Old
#9  
RaverX3X's Avatar
Recognized Developer
Thanks Meter 5272
Posts: 4,281
Join Date: Jun 2011
Location: Cali

 
DONATE TO ME
Quote:
Originally Posted by AntonX View Post
Is this question for me or for dsexton702? If for me, I'm a software engineer, actually have been for over 20 years, but we are in medical devices field. I started working with computers long time ago in PDP-11 era as a tech then OS engineer, so I pretty much know (or maybe feel ) how this things work inside.
It was for you i know who dsexton is .



So don't you worry your pretty little mind
People throw rocks at things that shine
And life makes love look hard
The stakes are high, the water's rough
But this love is ours
 
RaverX3X
Old
#10  
RaverX3X's Avatar
Recognized Developer
Thanks Meter 5272
Posts: 4,281
Join Date: Jun 2011
Location: Cali

 
DONATE TO ME
Quote:
Originally Posted by juan16h View Post
how did you get that?
2.0 ghz oc cooled it long enough to be stable and take a pic and then reverted the changes phone gets really hot fast :P



So don't you worry your pretty little mind
People throw rocks at things that shine
And life makes love look hard
The stakes are high, the water's rough
But this love is ours

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes