To answer your questions: I was using Ubuntu two different hardware setups, both had 2 GB Ram installed, about 75% of which was free. See below for an output of "free".
As far as I can tell (that is, as far as "java -version" tells me), I'm using Sun's Java: java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing) But I think this wouldn't matter anyway, because the Android Emulator is based on Quemu which is native software, not Java. Or am I missing something? To make things even stranger than they were before, I removed my hard disk and attached it to yet another computer, which normally should perform about equally to the two systems I was using before, despite it only has 1 GB of Ram. I'm booting my Ubuntu from the hard disk attached via USB, and here everything runs smoothly, including the emulator. Even with method tracing turned on, performance is ok and very comparable to what I was used to have on XP. So the conclusion would be, that my first hardware setup can't be the bottleneck, since it runs the emulator fine under XP, and that my Ubuntu configuration can't be the bottleneck, since it runs the emulator fine on the third hardware configuration. Too bad that the first computer is broken now, and the third one doesn't belong to me, and the second one performs badly under ubuntu and currently has no XP. Just for completeness, here's the output of "free", made on that nice third computer which runs it just fine: total used free shared buffers cached Mem: 1017192 971392 45800 0 18844 310512 -/+ buffers/cache: 642036 375156 Swap: 2441840 218892 2222948 On 5 Dez., 17:23, theSmith <chris.smith...@gmail.com> wrote: > My emulators behave just fine under 9.10 Karmic Kola, unless I start > method tracing, then it really slows down. > Are you using the java sun jdk and not the open jdk? > > On Dec 5, 11:12 am, "Mark Murphy" <mmur...@commonsware.com> wrote: > > > > I'm using a dual boot configuration with Windows XP and Ubuntu 9.04. > > > On XP, the emualtor is somehow slower than a real G1 device, but it's > > > completely ok. > > > > But on Ubuntu, the emulator is unusable slow. Note that other programs > > > run just fine under my ubuntu. I have no exact measurements, but I > > > think the emulator about 10 times slower than on Windows. Installing a > > > small app takes more than 2 minutes, starting an app sometimes takes > > > over 2 minutes, returning to the home screen takes up to 40 seconds, > > > and there is not a single click I can do that takes less than 2 > > > seconds to trigger some kind of reaction. I get around 2 fps at most, > > > no matter what I do. > > > I am writing this email on a notebook, dual-boot Vista and Ubuntu 9.04, > > and if anything, the Ubuntu emulator is a bit faster. > > > > Also, I noticed that under heavy usage of the emulator, the usage of > > > my real CPU never went above 30%. > > > > Is there any explanation for this slowness on Ubuntu? Or even a way to > > > further investigate where the bottleneck might be? > > > How much RAM do you have? What is the output of running 'free' in Ubuntu > > from a shell? > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > Android App Developer Books:http://commonsware.com/books.html -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en