Start SystemServer in parallel to Zygote class preloading

106 views
Skip to first unread message

Ermir

unread,
Feb 9, 2012, 5:48:39 AM2/9/12
to android-platform
Hi,

I'm trying to speed up boot process and I've seen that Zygote is
preloading a lot of classes before starting SytemServer. What will
happen to just load the classes SystemServer needs and then start it
in parallel with the rest of the preloading?

Dianne Hackborn

unread,
Feb 9, 2012, 10:35:02 PM2/9/12
to android-...@googlegroups.com
If nothing else, you will waste RAM.


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.




--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Ermir

unread,
Feb 13, 2012, 8:41:12 AM2/13/12
to android-platform
Thanks Dianne,

Where is the RAM wasted? I've read in different posts that if shared
classes are loaded separately by an application, they will stay in
private mem of that app and not shared anymore. Every app will have
its own copy of those classes that were supposed to be shared, right?

I guess Zygote cannot guess in advance or run time which classes will
be shared.


On Feb 10, 4:35 am, Dianne Hackborn <hack...@android.com> wrote:
> If nothing else, you will waste RAM.
>
>
>
>
>
>
>
>
>
> On Thu, Feb 9, 2012 at 2:48 AM, Ermir <erm...@gmail.com> wrote:
> > Hi,
>
> > I'm trying to speed up boot process and I've seen that Zygote is
> > preloading a lot of classes before starting SytemServer. What will
> > happen to just load the classes SystemServer needs and then start it
> > in parallel with the rest of the preloading?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=en.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
Reply all
Reply to author
Forward
0 new messages