[android-porting] boot speed -- scan package, IO buffering, and prefetch

2010-06-20 Thread Tomei
Hello, It seems package scanning speed is greatly influenced by IO buffering: I did some simple experiment. I am testing with a fresh build so there are NO apps under /data/app. First boot up the phone. Then do either (A) or (B): (A): # stop # sync; echo 3 > /proc/sys/vm/drop_caches # start (

[android-porting] How to determine which part of a file has been buffered?

2010-06-17 Thread Tomei
Hi, I need to tune the file usage code in my Android port. Is there a way to find out "which blocks of a given file is mapped in the linux buffer cache currently"? The file in question is a simple data file under /system or /data. If this is possible, I can periodically poll this information and

[android-porting] com.cooliris.media/cache keeps growing

2010-06-14 Thread Tomei
Hello, I am not sure if anyone has noticed this. On DROID + 2.1 update, I have about 100 family photos in my sdcard. I noticed that if I don't change anything in the card, but just start media scanning for about 10 times, one file in the com.cooliris.media/cache directory keeps growing. Is this a

[android-porting] How does a service know if a client has disconnected

2010-05-11 Thread Tomei Ningen
Hi, I need to implement a new service inside system service. I would like it to work similar to the window manager -- a client would connect to my service and create a "thing" (e.g., a window). When the client disconnects (e.g., if its process gets killed), I need to delete this "thing". How do I

[android-porting] Takes too long to build libwebcore.so.

2010-04-22 Thread Tomei Ningen
If I just change one line in WebView.cpp and do a mmm external/webkit It takes almost 3 minutes on a fast quad-core Xeon. Most of the time is spent linking libwebcore.so Is there a way to speed up the linking process. This is just for development so I am willing to give up optimization. Than

[android-porting] SKIA font draft mode?

2010-03-23 Thread Tomei
Hello, Does SKIA support "draft" mode for font? I need to resize the WebView very rapidly on a slow device, and my speed is getting killed by all these: /skia( 3349): purging 194K from font cache [22 entries] /skia( 3349): purging 201K from font cache [13 entries] This is a problem becau

[android-porting] Replace framework.jar on the emulator w/o rebuild image

2010-03-17 Thread Tomei
Hi, I found that this works to some extent. It will save a few minutes for rebuilding the system image and rebooting the emulator: adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system adb push out/target/product/generic/system/framework/framework.jar / data adb shell rm /system/fr

[android-porting] Where exactly is /data

2010-02-04 Thread Tomei Ningen
I found that writing to /data/dalvik-cache is surprising fast. Also, the more files I write onto /data, the less free RAM I have left. Does this mean /data is RAM-based file system? If so, how does the contents of /data/dalvik-cache persist across phone reboot? Thanks -- unsubscribe: android-po