[hack+benchmark] Fastest file system for sd card on android. - Android Software/Hacking General [Developers Only]

I have successfully modified vold so that it can mount both xfs and ext2 file systems.
Why those two you say? because xfs is supposedly the fastest journaling file system and is probably the only competiton to ext4. why ext2 ?because it doesn't journal at all. I mounted both fs's with noatime and nodiratime option .the following is my result(and i've attacked the modified vold so just format your sdcard with fat,xfs or ext2 and after boot and successful mount do a chmod -R 777 /mnt/sdcard from adb shell).
Xfs:
mount:
Code:
/dev/block/vold/179:3 /mnt/sdcard xfs rw,noatime,nodiratime,attr2,logbufs=8,noquota 0 0
/dev/block/vold/179:3 /mnt/secure/asec xfs rw,noatime,nodiratime,attr2,logbufs=8,noquota 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
read: 8.8 Mb/s write: 22.2 Mb/s total: 279
ext2:
mount:
Code:
/dev/block/vold/179:3 /mnt/sdcard ext2 rw,noatime,nodiratime,errors=remount-ro 0 0
/dev/block/vold/179:3 /mnt/secure/asec ext2 rw,noatime,nodiratime,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
read: 6.2 MB/s write: 20.4 MB/s total: 251
the results clearly were a surprise to me since everyone I've talked to said that ext2 should be faster since it has no journaling and that xfs was designed for large video files and has journaling.
but the benchmark says it all,xfs is the clear winner.
I'd love to hear if anyone has any suggestion on a better file system or how to optimize either ext2 or xfs for android.
btw, my phone is nexus s(internal sdcard storage) the benchmark i used was antutu and i was running it at 1000Mhz (didn't overclock since i wanted to see the performance at stock clock speed).
oh and make sure to do mount -orw,remount tmpfs /mnt/sdcard/.android_secure
before doing a chmod -R 777 /mnt/sdcard

Can you post your changes to vold? I'm very interested on this.

i would also like to know the changes to vold, using your vold on infuse 4g makes the internal sdcard unsuable

Related

[Q] Where's the mount point for the root file system?

On my G1, I know that the internal flash memory is divided into several partitions used by the system. Running the busybox shell on a terminal emulator on the phone or through adb, I can run df and get the following:
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 48852 0 48852 0% /dev
tmpfs 48852 0 48852 0% /mnt/asec
/dev/block/mtdblock3 92160 89048 3112 97% /system
/dev/block/mtdblock5 91904 77792 14112 85% /data
/dev/block/loop0 4096 4096 0 100% /system/xbin
/dev/block/mtdblock4 30720 1160 29560 4% /cache
/dev/block/vold/179:1
15541688 12742232 2799456 82% /mnt/sdcard
/dev/block/vold/179:1
15541688 12742232 2799456 82% /mnt/secure/asec
But strangely there's no mount point for /, the root file system. Yet there are lot of other files and directories directly in the root file system, like init scripts. Could anyone explain to me how this is? Is the root file system hidden somehow from df?

[Q] how to tell android to detect my sd card storage as external storage

Hello xda hackers,first off I'd like to say this is my first post here but your forums (and forum members work) has helped a lot.
I've recently been experimenting with xfs for my "sd card" on my nexus s.
(just to see the performance difference between xfs,fat32 and ext4 on my nexus s)
I've successfully compiled mkfs.xfs for arm and I’ve successfully formatted my sdcard storage with xfs. I’ve even gotten it to mount fine in android (btw, i use a custom kernel based on netarchy's git repo). i can verify it's mounted(i've even gotten it to mount at boot because vold.fstab just wasn't working). and i can even access files on it using some file browser apps.
the problem I'm having is that all of my apps think i don't have "external storage".
I've even done setprop EXTERNAL_STORAGE_STATE mounted
camera,music,etc.... all the apps say i don't have usb/external storage.
so i just wanted your help in finding out how exactly android tells if a mount-point is external storage or not.
FYI: my nexus s doesn't really have an sd card it's an internal storage (i think nand).
here is the output of some commands in case you need it:
adb shell mount:
Code:
rootfs / rootfs ro,noatime 0 0
tmpfs /dev tmpfs rw,noatime,mode=755 0 0
devpts /dev/pts devpts rw,noatime,mode=600 0 0
proc /proc proc rw,noatime 0 0
sysfs /sys sysfs rw,noatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,noatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev,noatime 0 0
/dev/block/mtdblock6 /efs yaffs2 rw,nosuid,nodev,noatime 0 0
/dev/block/platform/s3c-sdhci.0/by-name/system /system ext4 rw,noatime,barrier=0,nobh,data=ordered 0 0
/dev/block/platform/s3c-sdhci.0/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,barrier=0,nobh,data=ordered,noauto_da_alloc 0 0
/dev/block/mmcblk0p3 /mnt/sdcard xfs rw,noatime,attr2,noquota 0 0
none /sys/kernel/debug debugfs rw,noatime 0 0
adb echo $EXTERNAL STORAGE :
# echo $EXTERNAL_STORAGE
/mnt/sdcard
feel free to ask me for more info. and yes I’ve googled it all over and plenty of people have tried helping me on irc. all the topics that come up is about people having their sd cards not detected.
mkfs.xfs in case anyone wants it.
oh, and I’ve attached mkfs.xfs for those of you who want to run it from your phones but don't want to compile it from the source(it took me a few hours to get around some of the compilation/cross-compilation issues).
it's 1.8Mb because it's statically linked.
nvm, i got is solved by hacking around vold. thanks for all the help...Not.
i cant mount sdcard storage
hi i have samsung galaxy 3 i5800
end i instaled on my phone kyrilos v9.4 rom
end now i want to mount sdard storage bat wen i go to the recovery
i choice mount sdcard storage,mount sdcard ext end reboot nothing hapen
i go back to recovery end i have agen option mount sdcard that mean my card is not mounted
pleace i need som healp this is my first android phone
sory for my english

[Q] abount internal storage size

I have p3100 8GB and I saw that internal storage is only 2GB. is this normal? if not, what should I do?
danis26 said:
I have p3100 8GB and I saw that internal storage is only 2GB. is this normal? if not, what should I do?
Click to expand...
Click to collapse
It is 8GB total between all items stored. You have /data, /cache, /sdcard, /system, and then a couple other random items as well. The total of all of those should be ~8GB.
imnuts said:
It is 8GB total between all items stored. You have /data, /cache, /sdcard, /system, and then a couple other random items as well. The total of all of those should be ~8GB.
Click to expand...
Click to collapse
But isn't 2GB too low? Its only 2GB and I cant instal apps to sdcard.
sorry for my bad English.
I have about 3gb of storage not counting the space my apps take up.
Sent from my GT-P3113 using XDA Premium HD app
matt30 said:
I have about 3gb of storage not counting the space my apps take up.
Sent from my GT-P3113 using XDA Premium HD app
Click to expand...
Click to collapse
what ROM are you using?
danis26 said:
what ROM are you using?
Click to expand...
Click to collapse
Tab2lite beta 2
Storage lists my total space at 4.6gb.
Sent from my GT-P3113 using XDA Premium HD app
The memory layout on the Tab 2 is a strange bird. The 8GB is divided into two partitions of equal size, and you will always see the internal memory and virtual SDCard being of equal size. You really only have 4GB to actually install anything programwise. With Ice Cream Sandwich, you cannot move apps to the ExtSDCard because of Google's far-seeing "wisdom" that said that we would not ever need more than what they gave us in the Tab 2. There ARE some apps that will allow you to move some game files to the ExtSDCard like GL to SD(Root) and Directory Bind, but there really isn't a long term solution yet on how to move apps to the ExTSDCard consistently without need of special apps. I imagine that it may take a major ROM tweak that will allow this function. There is also a 1GB dedicated cache directory that needs to be cleaned ever so often otherwise Google Play will not allow you to install anything once the cache is filled. There are a number of utility apps available in the Play Store that will optimize memory and clear the cache...
Alex
So what should I do to get 4GB free space instead of 2GB ?
AlexM555 said:
The memory layout on the Tab 2 is a strange bird. The 8GB is divided into two partitions of equal size, and you will always see the internal memory and virtual SDCard being of equal size. You really only have 4GB to actually install anything programwise. With Ice Cream Sandwich, you cannot move apps to the ExtSDCard because of Google's far-seeing "wisdom" that said that we would not ever need more than what they gave us in the Tab 2. There ARE some apps that will allow you to move some game files to the ExtSDCard like GL to SD(Root) and Directory Bind, but there really isn't a long term solution yet on how to move apps to the ExTSDCard consistently without need of special apps. I imagine that it may take a major ROM tweak that will allow this function. There is also a 1GB dedicated cache directory that needs to be cleaned ever so often otherwise Google Play will not allow you to install anything once the cache is filled. There are a number of utility apps available in the Play Store that will optimize memory and clear the cache...
Alex
Click to expand...
Click to collapse
This is not right.
There are several partitions of the 8gb flash memory, not two. Not being able to move apps to an sd card is not an ICS issue but a modification made by Samsung. The cache never needs to be cleared, its size is 688mb not 1gb, and if you want to clear it (even though it offers no benefit whatsoever to do so) you can do it from the menus in ICS.
---------- Post added at 06:33 PM ---------- Previous post was at 06:32 PM ----------
danis26 said:
So what should I do to get 4GB free space instead of 2GB ?
Click to expand...
Click to collapse
Do you have a terminal emulator app? adb? It's hard to fix your problem if we don't know more.
matt30 said:
This is not right.
There are several partitions of the 8gb flash memory, not two. Not being able to move apps to an sd card is not an ICS issue but a modification made by Samsung. The cache never needs to be cleared, its size is 688mb not 1gb, and if you want to clear it (even though it offers no benefit whatsoever to do so) you can do it from the menus in ICS.
---------- Post added at 06:33 PM ---------- Previous post was at 06:32 PM ----------
Do you have a terminal emulator app? adb? It's hard to fix your problem if we don't know more.
Click to expand...
Click to collapse
Yes I have terminal emulator app.
I have similar problem. I have p3110 16Gb and after installing Tab 2 lite beta 2 (I tested all other p3113 rom,stock and custom, and they all worked without any problems), memory went from 16GB to 8G. I can't find a way to revert this(installed the proper stock rom). One other strange thing is that i can't re-partition anymore using odin,it fails on that process. Any ideas?
danis26 said:
Yes I have terminal emulator app.
Click to expand...
Click to collapse
HapaBiH said:
I have similar problem. I have p3110 16Gb and after installing Tab 2 lite beta 2 (I tested all other p3113 rom,stock and custom, and they all worked without any problems), memory went from 16GB to 8G. I can't find a way to revert this(installed the proper stock rom). One other strange thing is that i can't re-partition anymore using odin,it fails on that process. Any ideas?
Click to expand...
Click to collapse
I wonder if this will work without busybox but you should run
$ su
then
# fdisk -l /dev/block/mmcblk0
then
# df
also
# mount
and tell me what you see.
It would also be helpfull if you could go to the '/dev/block/platform/omap/omap_hsmmc.1/by-name/' directory and tell me what you see.
For the guy that flashed tab2lite, you should proabably pm the dev and ask him for an odin flashable partition table for the 16gb version.
This is what i get.
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 7818 MB, 7818182656 bytes
1 heads, 16 sectors/track, 954368 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 954368 7634943+ ee EFI GPT
Partition 1 does not end on cylinder boundary
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 343M 76K 343M 4096
/mnt/asec 343M 0K 343M 4096
/mnt/obb 343M 0K 343M 4096
/system 1G 949M 255M 4096
/data 1G 1G 276M 4096
/cache 688M 11M 677M 4096
/efs 19M 8M 11M 4096
/mnt/sdcard 1G 1G 276M 4096
/mnt/extSdCard 7G 3G 4G 4096
[email protected]:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/CACHE /cache ext4 rw,nosuid,nodev,noatime,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/EFS /efs ext4 rw,relatime,barrier=1,data=ordered 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/fuse /mnt/sdcard fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:25 /mnt/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
[email protected]:/ #
danis26 said:
This is what i get.
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 7818 MB, 7818182656 bytes
1 heads, 16 sectors/track, 954368 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 954368 7634943+ ee EFI GPT
Partition 1 does not end on cylinder boundary
[email protected]:/ # df
Filesystem Size Used Free Blksize
/dev 343M 76K 343M 4096
/mnt/asec 343M 0K 343M 4096
/mnt/obb 343M 0K 343M 4096
/system 1G 949M 255M 4096
/data 1G 1G 276M 4096
/cache 688M 11M 677M 4096
/efs 19M 8M 11M 4096
/mnt/sdcard 1G 1G 276M 4096
/mnt/extSdCard 7G 3G 4G 4096
[email protected]:/ # mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc,discard 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/CACHE /cache ext4 rw,nosuid,nodev,noatime,barrier=1,nomblk_io_submit,data=ordered 0 0
/dev/block/platform/omap/omap_hsmmc.1/by-name/EFS /efs ext4 rw,relatime,barrier=1,data=ordered 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/fuse /mnt/sdcard fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:25 /mnt/extSdCard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1023,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
[email protected]:/ #
Click to expand...
Click to collapse
You have the 8gb model and a custom rom. How did you flash this? I heimdal or Odin? What ROM are you on?
Your /data partition is messed up.
Sent from my GT-P3113 using XDA Premium HD app
matt30 said:
You have the 8gb model and a custom rom. How did you flash this? I heimdal or Odin? What ROM are you on?
Your /data partition is messed up.
Sent from my GT-P3113 using XDA Premium HD app
Click to expand...
Click to collapse
We can close this threat. I solved this problem myself. Formated data and cache and now I have 4.56GB of space. THank you matt30 for your help!!!

[Q] Galaxy 3 (I5801) Kyrillos ROM 10.6, issue with sd-ext partition

HI Guys,
I have a peculiar problem, and I hope someone can help solve this:
My phone is a Galaxy 3 (I5801), and I just installed Kyrillos ROM 10.6 on it. I had previously created a 1GB ext4 partition using CWM in my 8Gb card. From Kyrillos' post, I only have to do this much to enable hybrid data2sd, where all the new apps get installed in the sd-ext (1gb) partition on sd card. It seemed to work fine, I removed unwanted launchhers, made backups using Titanium, and plugged the phone to My Linux Mint system.
I copied data to the sd card (6.x gb partition) (and the 1gb ext4 partition was also auto mounted).
I rebooted the phone, and all the newly installed apps (which went to sd-ext) were not visible anymore. I tried to find them, but they were visible as ghosts in the applications list in settings.
I am guessing that the ext4 partition is not getting mounted.
Why is this happening? any ideas? please help!
EDIT:
Here is the output of the "mount" command from terminal emulator
$ export PATH=/data/local/bin:$PATH
$ mount
rootfs on / type rootfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,noatime,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
none on /acct type cgroup (rw,relatime,cpuacct)
tmpfs on /mnt/asec type tmpfs (rw,noatime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,noatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/stl6 on /system type ext4 (rw,relatime,commit=600,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/stl7 on /data type ext4 (rw,nosuid,nodev,noatime,nodiratime,commit=20,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/stl8 on /cache type rfs (rw,nosuid,nodev,noatime,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437)
/dev/block/stl4 on /efs type rfs (rw,nosuid,nodev,noatime,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437)
/dev/block/stl7 on /cache/download type ext4 (rw,nosuid,nodev,noatime,commit=20,barrier=1,data=ordered,noauto_da_alloc)
/dev/block/mmcblk0p2 on /sd-ext type ext4 (ro,relatime,barrier=1,data=ordered)
/dev/block/vold/179:9 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:9 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0602,dmask=0602,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
UPDATE 2:
The problem occurs only when i restart phone after connecting it to Linux Mint (Which Mounts the EXT4 /sd-ext partition. if connected to windows, no problems occur....
Any Ideas?
I have (almost) the same problem. My data2sd isn't working. link2sd desn't see my partition at all. And if I try to use hybrid data2sd I have to use it with either "g3mod config" or KMApp, but then I have this issue with ghost apps.
My phone is i5800, and if I enable BLN in KMApp (which is only for i5801), the apps stay normal, but I get sleep of death issue with screen.

mounted but storage 0 Byte

I have compiled android 4.2.1 from mediatek offical source code for MTK6589, kernel and module port from official firmware . boot ok,basically works,but a big issue: the internal and external storage has 0 B left.
the 'adb shell mount' show:
/dev/block/vold/179:8 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:8 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:97 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
mounted and file accessible in shell. I have tried http://forum.xda-developers.com/showthread.php?t=2108620 but not work. What should I do, please help me

Categories

Resources