Hi Friends
I am exploring the ways to improve the UI performance on our
development device running on Froyo.
I am measuring the UI performance by couting the number of frames
posted per second
in Gralloc Module: framebuffer.cpp::fb_post().

I read in some posts that replacing Ashmem with PMEM can improve the
UI performance
as it guarantees the physically coniguous memory. I followed that
thread and replaced
the default gralloc module with MSM's gralloc module (having PMEM
support). I also reserved 16 MB memory for pmem device by changing the
kernel boot command. Also, I added parameters for the pmem device in
board
file as:

static struct android_pmem_platform_data android_pmem_pdata1 = {
        .name = "pmem",
        .start = PMEM_DEVICE_START,
        .size  = PMEM_DEVICE_SIZE,
        .no_allocator = 1,
        .cached = 1,
};

static struct platform_device android_pmem_device1 = {
        .name = "android_pmem",
        .id = 1,
        .dev = {.platform_data = &android_pmem_pdata1},
};


After doing these changes the phone comes up and runs smoothly and
PMEM allocations are happening. But I observed that there is slight
decrease instead of increase in the UI performance with PMEM in
comparison to Ashmem.

Is there anything I am missing here ?? To enable cache, I have set
"cached" parameter. Do I need to do something more ??

Thanks and Regards
Alok

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to