zenity consumes about 100% CPU when installing Ubuntu on nexus 7

Bug #1077973 reported by Ming Lei
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-nexus7
Confirmed
Wishlist
Chris Van Hoof

Bug Description

top - 23:10:25 up 3 days, 14:08, 12 users, load average: 2.94, 2.59, 1.53
Tasks: 302 total, 5 running, 295 sleeping, 0 stopped, 2 zombie
Cpu0 : 18.9%us, 7.8%sy, 0.0%ni, 73.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu1 : 63.6%us, 36.4%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 60.4%us, 28.4%sy, 0.0%ni, 10.6%id, 0.7%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 67.2%us, 32.8%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3711848k total, 3440916k used, 270932k free, 72220k buffers
Swap: 3905532k total, 654676k used, 3250856k free, 678772k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18213 tom 20 0 407m 19m 14m R 100 0.5 13:36.81 zenity
18499 tom 20 0 407m 19m 14m R 99 0.5 7:50.64 zenity
18380 tom 20 0 407m 19m 14m R 98 0.5 8:56.89 zenity
 9641 tom 20 0 1364m 135m 9476 S 4 3.7 75:03.35 chrome
10587 tom 20 0 419m 38m 5732 S 3 1.1 56:39.52 skype

Ming Lei (tom-leiming)
description: updated
Matt Fischer (mfisch)
Changed in ubuntu-nexus7:
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Ming Lei (tom-leiming) wrote :

Also it is quite slow to install ubuntu in China, and basically the speed is about 4KB/sec, so looks
it is quite difficult to play ubuntu on nexus 7 for Chinese guys.

So is there any way to support downloading ubuntu images(boot.img, rootfs.img, kernel.img) offline
and installing them manually?

Thanks,

Revision history for this message
Boren Zhang (bobo-324) wrote :

http://hwe.ubuntu.com/uds-r/nexus7/
I find this website to download image
I put all files in ~/Downloads/UbuntuNexus7

Revision history for this message
Chris Van Hoof (vanhoof) wrote :

Hi Ming -- If you have a cycle or two have a look here:

http://unix.stackexchange.com/questions/16760/why-is-piped-input-okay-to-zenity-but-file-malfunctions

I'll look to see if another solution could be used which is a bit more relaxed CPU wise.

Changed in ubuntu-nexus7:
assignee: nobody → Ming Lei (tom-leiming)
Revision history for this message
Ming Lei (tom-leiming) wrote :

Hi Chris,

Looks it isn't same with the problem in the above link, in which there is no the cpu 100% problem when
running 'program | zenity', but your script always takes the trick of pipe.

Thanks,

Chris Van Hoof (vanhoof)
Changed in ubuntu-nexus7:
assignee: Ming Lei (tom-leiming) → Chris Van Hoof (vanhoof)
Revision history for this message
Dave Cheney (dave-cheney) wrote :

Still not fixed as of version 1.7 of the installer

Revision history for this message
Chris Van Hoof (vanhoof) wrote :

This is a result of directing STDIO/STDERR to a pipe to achieve --progress dialog in zenity. Unless I move to --pulsate which does not depict actual progress I'm not sure of a suitable solution. Code is available here if you have suggestions:

http://kernel.ubuntu.com/git?p=vanhoof/ubuntu-nexus7-installer.git;a=summary

Changed in ubuntu-nexus7:
importance: Low → Wishlist
status: Triaged → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.