yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] dwang:
Even without adfree installed, 3.5.1 is definitely more laggy than 3.5.

Just browsing the xda forums, I'm noticing pauses when scrolling and loading various pages takes longer.

Libwebcore.so is 4megs so whenever that is being called, it has to uncompress all of that which has to make things slower than before.

Instead of using squashfs for /system/lib, what about using bind mount and putting some libraries on the sdcard to increase space or put libraries in the /cache directory and symlink it over?

I also do notice some crashing process in the logcat when booting because it takes longer to start up.
[G1 Android Development] cyanogen:
libwebcore is loaded pretty early after booting the device. I don't think this is the cause. You can run "latencytop" to see how long calls into the kernel are taking and how often they occur. You don't see much squashfs related stuff after the system is booted.

Can you try this boot.img and let me know if it runs better for you? http://n0rp.chemlab.org/android/testing/boot-new.img

Going on the principal here that enabling complex kernel features designed for desktops does not work well on these embedded devices.
[G1 Android Development] minhtrung618:
Good Job man, keep updating ^^
[G1 Android Development] Rafase282:
So does that means there is a 3,5,2 coming soon?
[G1 Android Development] Denkai:
you could but you can also just convert your ext3 to ext4 and not loose any of your apps or files and thus won't need to re-install.
[G1 Android Development] firestrife23:
I've been using ext4 on my linux box since kernel 2.6.20's without any complication, andyou can mount ext3 as ext4 anyway. I welcome ext4 with open arms!!

By the way I'll give this Rom a test drive and see it'll put end to "coma" syndrome. (crossing my fingers)
[G1 Android Development] Stretch3000:
Yeah that means would have to install ADB and it seems like a hassle to do.
[G1 Android Development] Stretch3000:
Keep us updated. With coma syndrome gone this rom is perfect.
[G1 Android Development] cyanogen:
Janet is right though, there *are* known issues with ext4 and 2.6.29. Things don't happen the same way as ext3 default "ordered" mode, which can cause data loss when delayed allocation is in use.
[G1 Android Development] Denkai:
it seems like a pain at first but it is well worth it!
[G1 Android Development] dwang:
Did the swappiness parameter get changed in 2.6.29?

I'm using a 32meg swapfile with swappiness set to 10 and I'm still seeing low memory statements in logcat and the "used" swapfile value seems to go up very slowly.

I'm seeing a lot of browser refreshes even with swapfile on which I didn't see before.

That being said, even with swapfile OFF I'm seeing much less lagginess with 3.5 especially when I have imeem streaming in the background. UI seems more responsive with the 2.6.29 kernel.
[G1 Android Development] drak0:
Not sure why, but 'ambient light sensor' is broken with this build and 3.4.6. it also causes the camera apps to not work. I just had to uninstall ALS and now all is good...

Thanks for the rom! :)
[G1 Android Development] Constrabus:
This version fixes for me SD mounting on Linux with a card with a single (fat32) partition.
[G1 Android Development] JanetPanic:
And I have used it extensively for the partitions holding my VMs. There are advantages to EXT4, my argument is that there are comparatively few advantages for the android environment and one very significant problem pre 2.6.30. I have never had a problem, nor have the majority of users of ext4. However the event occurrs when the filesystem is shutdown without warning and can be fairly catastrophic if the journal is in an incomplete state. An example of this would be if your phone goes zombie and you pull the battery.... Proper shutdown of the filesystem when powering off does mitigate most of my worries though. ;)

If you understand the differences and go in with your eyes open then by all means use ext4. What I am trying to discourage is the use of ext4 by people who use it simply because it is more recent.

Oh and thank you Cyanogen for all your hard work. I will try flashing it tomorrow.

EDIT: And I want to stress the danger is minimal, just that the upgrade to ext4 over ext3 is not a "free ride." Unlike ext2 to ext3 there are trade offs.
[G1 Android Development] mayormullet:
Aw heck - I'm in! What's the point of being rooted if you're not gonna use scary experimental builds? :eek:
[G1 Android Development] dwang:
Ok uninstall and reinstall of advanced task manager fixed the issue.

I also had issues withe diggsdroid, which was fixed when i reinstalled it again.
[G1 Android Development] cheko:
Any Requirements to Load this ROM

Cyanogen are there any specific requirments well besides Big Cahones...

SPL or Radio
[G1 Android Development] Stretch3000:
Signature on posts

Sorry for the unrelated question. How do I put my signature on my posts like you cool guys?

Nevermind found it.
[G1 Android Development] robbie725:
when you are logged in on the top left corner you should see User CP click that and change away...

peace
[G1 Android Development] jroid:
ok so i loaded 3.5 no problem, installled hero theme no problem. everythings working very fast and stable just like previous ones. :) i had to push back some of my hero notification mp3's though that didn't stay even with a no-wipe
[G1 Android Development] jroid:
also no forcecloses ;)
[G1 Android Development] TheGreenJester:
Yep, ALS doesn't like the new HTC Camera it seems. I was disappointed, but had to uninstall it also.
[G1 Android Development] [[ Cold ]]:
cyanogen have u considered having your great advances in a Rogers rom??? i really cant stand the regular android dialpad w/o smartdial...
[G1 Android Development] dwang:
this boot.img fixes the adfree issue. What feature did you disable in the boot.img?

I'll test it some more and try using a swapfile as well. So far its feeling pretty snappy.

So most of the libraries that are using squashfs are loaded into memory at boot time and never get offloaded again or need to be reloaded from flash?
[G1 Android Development] cyanogen:
Yeah, they should be for the most part.

I just made a version of 3.5.1 that doesn't use squashfs for /system/lib. You can grab it here if you want to try it:

http://n0rp.chemlab.org/android/testing/update-cm-3.5.1-nosquash-signed.zip

It seems to be much faster for me. Maybe there is some locking happening in the kernel with squashfs thats causing problems.
[G1 Android Development] dwang:
yeah this version is definitely faster than the squashfs version. UI responsiveness is back to 3.5.0 levels.
[G1 Android Development] daveid:
Since the space being taken by the files in /system has grown with recent builds, I had to move my audio files back over to my sdcard (which sucks in my opinion - esp. when you mount it to move some files around and you get a call/msg). In any case, with the squashfs introduced in the 3.5.1 build I was able to move them back. However, if this scenario is not looking too good for performance, I guess they have to leave the /system partition again. I have tried in the past to put them on the ext3 partition (with a symbolic link) but it never seemed to work. Can you point me in the right direction for doing this (if it is even possible)? I am contemplating putting the "Special SPL" on, just for the extra space on /system... but don't want to risk being without a phone.

Is there any way you can get the media directory to be located on /system/sd and still have the files accessible to the operating system?

Thanks.

Edit - nevermind, I guess I didn't try hard enough before. I just moved it all over (ensuring permissions were transfered) linked it, and my sounds are still there. Now here's the question:

Is there a way for me to package my update.zip so that /system/media automatically links to /system/sd/media? Is that something in the update script I have to do?

Just moved to the 3.5.1 without sqaushfs, two differences right off the bat, it booted so much faster, and Touch Input did not ask me to force close or wait this time. I like that.

To solve my audio linking, I just adb shelled in once the system was available during boot and created my symbolic link.
[G1 Android Development] TheGreenJester:
I agree, the responsiveness is back. Squashfs was slower for me also.
[G1 Android Development] jinx10000:
How did you do this? I can use ADB, but I don't know how to set the proper links and permissions.

I assume you copy audio files to /system/sd/audio/ but after that I have no idea.
[G1 Android Development] daveid:
I did the following:

adb remount

adb shell

busybox cp -p -r /system/media /system/sd/media

rm -r /system/media

ln -s /system/sd/media /system/media

that should take care of it, until you flash a new ROM update, as it will blow our your symbolic link. I think I will just create a script that does this for me, so when I reboot after a flash I can just run that script and be done.
[G1 Android Development] Chahk:
For those wanting to use the swap partition, be mindful of the a2sd script changes between builds.
[G1 Android Development] robbie725:
3.5.1

Ok I am not sure what all this tech talk is, but I am learning, but this seems to be running great... have had no issues what so ever... advanced task manager closed on me, but I seen in this thread that reinstalling it corrected it and I did and it did... had a little bump I guess unrelated to the ROM with latitude reported all my contacts as being at my home, but a reboot of the phone and it latitude is back working... I tried everything else and it seems to be working fine...

peace
[G1 Android Development] heyoh:
3.4.6 --> 3.5.1 sloved sluggishness issue

I had a very stable and fast setup of 3.4.6 going so I decided to do a nadroid back of it. So yesterday I decided to wipe with 3.4.6 loaded. 3.4.6 was super fast for me and after a wipe I noticed I was having some issues that I wasn't having before. So I figured it was time to master fastboot and reload the 3.4.6 backup that I had. I did a fastboot flashall and then loaded userdata on top of that. For some reason that build was running super sluggish for me! Taking 5 to 10 seconds to switch screens. So after trying a few things I gave up decided to go with 3.5.1. I flashed 3.5.1 on top of the sluggish 3.4.6 environment I had and boom it's running like a champ again. Might be running faster than before actually.

Thanks again Cyanogen! I look forward to every rom you release!
[G1 Android Development] dwang:
One suggestion I'd like to make to cyanogen. How about having the a2sd script call a user script that resides on the ext3 partition.

That way, people that want to customize their phones with a swap partition, additional symlinks, etc. do not have to redo them every time an update occurs, as the a2sd will always call the user script at the end?

Thanks,

Dave
[G1 Android Development] cyanogen:
Sure, I will put it in the next version.
[G1 Android Development] ccyrowski:
sans squash definitely faster, more usable, and more stable than 3.5.1 or 3.5
[G1 Android Development] DebauchedSloth:
Same here...

Very, very happy with 3.5.x. Squash version seemed quite stable, but was laggy at times and not worth it (IMO). Have now flashed the nosquash version and all is (very) well.
[G1 Android Development] jinx10000:
messed this up somehow

copied audio from sdcard to /system/sd/media/audio

then copied and pasted your code as individual lines into a command prompt.

Lost all audio files but what came with rom.

typed ls /system/sd/media and inside of that I had two folders audio and another media folder

Tried it again to see if I messed something up and it said too many symbolic links.

Reflashed rom.

Any idea what I did wrong?
[G1 Android Development] mjb337:
do i have to wipe switching from the previous 3.5.1?
[G1 Android Development] Maisum:
Do you think you could try and add the HTC music?
[G1 Android Development] daveid:
Yeah, as you said you messed it up. You probably have the directory structure all wrong now. If you are copying files from your sdcard as well, here are some commands that will help you get this right. First you are going to have to clean up what you did:

adb remount

adb shell

rm -r /system/sd/media <---removes what you did before - assumes you have the sounds you want from your sdcard somewhere (like your pc), you should put those files back on your sdcard in the /sdcard/media directory.

busybox cp -p -r /system/media /system/sd/media

cp -r /sdcard/media /system/sd/media <-- this adds your files from the sdcard to those from the ROM.

rm -r /system/media

ln -s /system/sd/media /system/media

That should get all your files in the right place and linked. You should then hide or remove them from your sdcard and reboot your phone to have the system recognize them in their new location.

To verify that this is done right you can do the following:

ls -la /system

should look like this:

drwxr-xr-x 1 0 0 2048 Jun 28 16:10 .
drwxr-xr-x 12 0 0 0 Jun 28 16:11 ..
drwxr-xr-x 1 0 0 2048 Aug 1 2008 app
drwxr-xr-x 1 0 2000 2048 Aug 1 2008 bin
-rw-r--r-- 1 0 0 2181 Aug 1 2008 build.prop
drwxr-xr-x 1 0 0 2048 Aug 1 2008 etc
drwxr-xr-x 1 0 0 2048 Aug 1 2008 fonts
drwxr-xr-x 1 0 0 2048 Aug 1 2008 framework
-rw-r--r-- 1 0 0 143 Aug 1 2008 init.rc
drwxrwx--x 1 1000 1000 2048 Jun 28 16:11 intmem
drwxr-xr-x 1 0 0 2048 Aug 1 2008 lib
drwxr-xr-x 1 0 0 2048 Jun 28 16:10 lost+found
[COLOR="Red"]lrwxrwxrwx 1 0 0 16 Jun 28 16:12 media -> /system/sd/media[/COLOR]
drwxr-xr-x 3 1000 1000 26 Jun 28 05:56 modules
drwxrwx--x 9 1000 1000 4096 Jun 28 15:58 sd
drwxr-xr-x 1 0 0 2048 Aug 1 2008 usr
drwxr-xr-x 3 0 208 802 Jan 1 1970 xbin

and

ls /system/media

should only have "audio" inside it

ls /system/media/audio

which should show "alarms", "notifications", "ringtones", and "ui".
[G1 Android Development] dills84:
3.5.1 is running great with no wipe from 3.5.

the non-squash version runs alot quicker than the squash version for me.

Thanks for fixing the double shutter sound on camera!:)
[G1 Android Development] daveid:
Cyanogen already stated his dislike for the HTCMusic app, and has declared that he will not be building it into his ROM. You can do it yourself, if that is your desire.
[G1 Android Development] jinx10000:
Thanks for your help. That straightened it out.
[G1 Android Development] Dare{D}evil:
^^i agree with him :D

Thank You Cyanogen!!!
[G1 Android Development] simms22:
much faster i must say ! +1 for the nosquash version :D
[G1 Android Development] heyoh:
Yup the squashfs version was kind of laggy sometimes when accessing the menus. Switching to the non squashfs version appears to be way more responsive.
[G1 Android Development] kingsizeriz:
can anyone confirm if mms is working? as i am having errors trying to download the attachment - thank you
[G1 Android Development] ScottGood:
it's time to report back, I desided to update to 3.5.1 to see how no squashfs is and I must say that I'm not having any issues.

I currently have 75 apps no widgets and am seeing this phone run faster and better than my IBM thinkpad T40 with Kubuntu 9.X
[G1 Android Development] uberingram:
Just did a flawless no wipe update from 3.4.6 to 3.5.1 no squash. Phone feels extremely peppy. I'll post back if I run into any weird issues.
[G1 Android Development] blackomegax:
Is there a way to add what day it is to the new unlock screen?

I woke up thinking it was monday and the only way to get the day off the phone was to go into calender.
[G1 Android Development] tricky76:
I tried both versions of 3.5.1 and the second version is a little faster with much less lag.
[G1 Android Development] andonnguyen:
I'm currently using the 3.5.1 squash-fs build.

- I am experiencing no lag.

- Currently using apps2sd with ext3.

- Wifi tether works

- SCREENLOCK text is way to small to be read without putting on my glasses, lol (maybe stericson can fix it)
[G1 Android Development] blackomegax:
I 2nd this as well.
[G1 Android Development] Rafase282:
I'm currently using the 3.5.1 squash-fs build.

-All my app force close.

-Used the update permision script and it didnt work. Only reintalling the apps.

I first tried to go form 3.5 to 3.5.1 withotu a wipe and it woudlnt boot up then did a wipe and update again and got the probles mentioned earlier.
[G1 Android Development] bkmo:
No problems here. I did a reformat of the ext3 partition, then wiped and installed 3.4.6. After a reboot I went and flashed 3.5.1 no squashfs. No problems at all, runs fast as ever, wifi tethering looks good, and all apps reinstalled without issues using appsinstaller. Modded the a2sd script for swap too and it is working fine.
[G1 Android Development] Rafase282:
I just deleted everything on the ext4 partition and did a wipe and update. Now what is this a2sd script and sawp that everyone is talking about?
[G1 Android Development] Chahk:
Shazam is force-closing on 3.5.1 with squashfs (even after un-install and re-install). Will try the nosquash version and report back.
[G1 Android Development] bkmo:
Some of us have decided to add a third (linux swap) partition to the sd card. Then using cyanogens a2sd script that is in the rom we can add commands to it to enable the swap at bootup. Seems to make an improvement with multiple apps open. I notice an improvement with the browser.
[G1 Android Development] Rafase282:
Where can I get that script? and to make sure, you did not use the sawp app but a script and created a linux sawp partition right? How bing should the partition be?

i would like to try this.
[G1 Android Development] bkmo:
Cyanogen,

Is there any way you can make it so we do not have to put 3.4.6 on before clean installing one of the 3.5's? Maybe put the script needed to fix the xml in bin so we can run it from terminal? Also can we install 3.5.1 with a clean ext4 partition and have all work properly?

Thanks
[G1 Android Development] daveid:
I use a modified version of the Hero theme, and it has the date on the lock screen.

But, you can also pull down the notification bar to see the current date, so you don't have to open the calendar.
[G1 Android Development] Rafase282:
I have never used 3.4.6 and i used ext4 and everythign works fine. Only had problem when going from 3.5 to 3.5.1 the second release withotu a wipe.
[G1 Android Development] bkmo:
Take a look starting with the posts by dwang on page 15 of this thread.
[G1 Android Development] ScottGood:
the Notification bar shows the date, yes but so does the lock screen, he wants to see the day of the week, and the only way to see that is with the calender, if the Hero theme you are using shows the day and date please post a link for it. I mean yes we can search for it, but when someone says they have or found it, sharing is nice, its what we do here, right?

please don't take offense if this sounds rude.
[G1 Android Development] Chahk:
No luck with nosquash version. Fresh flash and getting force closes with Shazam only. Can someone else try to replicate?
[G1 Android Development] uberingram:
I just fired up Shazam on 3.5.1 no squash and tagged a song with nary an issue. :confused:
[G1 Android Development] daveid:
No mine doesn't show the day of the week. It has been an awfully long time since I forgot what day it was. ;) I thought they meant the date...
[G1 Android Development] Chahk:
I guess it's good that this isn't an issue with the build. Now I need to hunt down and erase all traces of this app and try to reinstall again.
[G1 Android Development] dan0zone:
same here ,,,,works like normal on 3_5.1 nosquash
[G1 Android Development] thedroid:
I've been running this for a few hours and it's working fine.
[G1 Android Development] JanetPanic:
3.5.1 no squash solved the problems I was having with iptables and wifi tether. So far everything seems to be working great.
[G1 Android Development] dynamisoz:
flashed 3.5.1..works great...very fast ..no lags

when i come out of certain app, it would lag b4 with 3.4.6

but this one doesnt at all...

one thing though....i have 8g class6 card

partitioned to 7.2 fat32 and 800mb ext3.

after flashing 3.5.1 internal memory was 71 and secondary was 732(cool).

but when i started to d/l apps...both internal and secondary memory would go down at the same time....why is it doing this please help.??
[G1 Android Development] cyanogen:
I tweaked the font sizes and the date format for the next version.
[G1 Android Development] ScottGood:
I just fired up Shazam and got a bunch of force closes and my phone locked up a few times, but once I got my first tag all is good with shazam, but My no squash version is still a bit laggy, my guess is it might be my 100MB Swap partition on my SD
[G1 Android Development] daveid:
I believe that more of the dalvik-cache (if not all of it) is being stored on the internal memory with this build. Just a guess I am making as I saw a pretty large decrease in free space on /data myself, and the only reasonable explanation is that more of the dalvik-cache is stored internally now. Not sure how the bind works... because when I (du -h -d 1) add up the used space on /data, it doesn't make sense to me. I see roughly 56M used, 41 of those are dalvik-cache, but df shows me 40M used.... So I don't know how it is broken up. Maybe Cyanogen can shed more light on it.
[G1 Android Development] cyanogen:
100MB of swap is an incredibly BAD idea. Seriously, keep it around 24MB unless you want your phone to go to ****.
[G1 Android Development] ScottGood:
I have no access to a linux box at this moment, are there any ways to fix this issue in windows and with a system that has no ability to boot a cd?
[G1 Android Development] temporizer:
Did this work for you? And how did you flash it?
[G1 Android Development] cyanogen:
Just use the nosquash version. I think we are all in agreement that using squashfs for /system/lib, even though it *should* work well, sucks ass and is out for the next release.
[G1 Android Development] cidica:
ok just installed the nosquash version and much better now on speed/lag. like that mod version you added to the about phone.
[G1 Android Development] farmatito:
Proposal for more size optimization in 3.5.1

I've gained about 3 MB of space by recompressing all apk files in /system/app

with zip -9 highest compression ratio.

Before: /dev/block/mtdblock3 67.5M 48.9M 18.6M 72% /system
After: /dev/block/mtdblock3 67.5M 45.7M 21.8M 68% /system

To achieve this goal is a little tricky as unpacking and recompressing the apk files

does not work and causes all sort of malfunctioning on the phone.

In the end I was able to recompress the apk files using this script:

#!/bin/sh
mkdir -p tmp
mkdir -p out
for i in `ls *.apk`
do
name=`basename $i .apk`
cp $i tmp
cd tmp
unzip $i
cp ../$i $name.zip
ls -la
list=`find | cut -b 3- | grep -v META-INF | grep -v apk |grep -v zip`
echo $list
zip -d $name.zip $list
zip -9 -g $name.zip $list
mv $name.zip ../out/$name.apk
rm -vR *
cd ..
done

Then I copied the new files to phone:

adb remount
for i in `ls *.apk`; do adb push $i /system/app; done

It took a little time for the phone to work through the changes and after a reboot

everything seems to work. Only thing I can notice is sometimes a little increase

in application startup time maybe due to increase of extraction time but I'm on

a /system/lib squasfs build so I cannot say for sure.

Maybe this could be usefull to recover the free space lost with the removal

of /system/lib squashfs in 3.51.

Ciao,

farmatito
[G1 Android Development] bkmo:
Look for a program called UNetbootin. I think there is a windows flavor. It is a program to create bootable USB linux distributions. I believe you can install parted magic from it.
[G1 Android Development] Rafase282:
Is 64 mb a bad idea too or is it fine?
[G1 Android Development] here.david:
Oops! Most posting talked about 16mb or 32mb....best way to go from 32mb to 24mb or if better, 16mb other than gpart again....
[G1 Android Development] temporizer:
So I don't need to flash the boot-new.img?

I want the latest and greatest on my phone with your marvelous work!
[G1 Android Development] bkmo:
The "man" said 24. I am running with 24 myself, but you really shouln't go over 32.