high cpu (sy) when running byobu

Asked by Geraint Williams

I am running Natty beta Server (upgraded from 10.10)

Linux bob 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

When I run 'screen' I see minimal cpu load :

top - 15:01:10 up 44 min, 2 users, load average: 0.10, 0.28, 0.31
Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.7%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st

but when running 'byobu' I see constantly high cpu (sy) load:

top - 15:02:42 up 45 min, 1 user, load average: 0.24, 0.27, 0.31
Tasks: 74 total, 1 running, 73 sleeping, 0 stopped, 0 zombie
Cpu(s): 5.6%us, 17.8%sy, 0.0%ni, 76.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st

I haven't changed any screen or byobu config files.

Is this to be expected?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu byobu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dustin Kirkland  (kirkland) said :
#1

Hmm, I'm not able to reproduce this here, on my system.

What are your hardware specifications? How many CPUs, what speed, and how much RAM?

FWIW, top inside of byobu here:

top - 10:45:51 up 1:45, 6 users, load average: 0.00, 0.01, 0.05
Tasks: 212 total, 1 running, 210 sleeping, 0 stopped, 1 zombie
Cpu(s): 5.7%us, 2.7%sy, 0.0%ni, 91.5%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 7856092k total, 4590868k used, 3265224k free, 209884k buffers
Swap: 4805628k total, 0k used, 4805628k free, 3135412k cached

Revision history for this message
Geraint Williams (geraint-williams) said :
#2

Hi,

I am running inside a VirtualBox VM

gwilliams@bob:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
stepping : 2
cpu MHz : 2393.841
cache size : 6144 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 constant_tsc up pni monitor ssse3
bogomips : 4787.68
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

top - 17:11:35 up 2:54, 1 user, load average: 0.07, 0.12, 0.09
Tasks: 71 total, 1 running, 70 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.7%us, 19.9%sy, 0.0%ni, 75.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 508000k total, 310864k used, 197136k free, 22312k buffers
Swap: 397308k total, 0k used, 397308k free, 247840k cached

I am seeing multiple processes called:
 byobu-status <defunct>
appear in the top window from time to time.

Thanks.

Revision history for this message
Dustin Kirkland  (kirkland) said :
#3

What version of byobu? byobu -v or dpkg -l byobu. Can you reproduce this
with the latest release?

Also, could you start disabling each of the status notifications one by one
so that maybe we can narrow down which one is misbehaving...

Revision history for this message
Geraint Williams (geraint-williams) said :
#4

gwilliams@bob:~$ byobu -v
byobu version 3.32
Screen version 4.00.03jw4 (FAU) 2-May-06

gwilliams@bob:~$ dpkg -l byobu
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii byobu 3.32-0ubuntu1 a set of useful profiles and a profile-switc

I have disabled all status notifications from the menu,
it is a little better, but I still see the same behaviour.

top - 20:53:02 up 16 min, 2 users, load average: 0.00, 0.18, 0.28
Tasks: 79 total, 2 running, 71 sleeping, 0 stopped, 6 zombie
Cpu(s): 5.0%us, 13.3%sy, 0.0%ni, 81.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 508000k total, 104636k used, 403364k free, 11936k buffers
Swap: 397308k total, 0k used, 397308k free, 53080k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 8571 gwilliam 20 0 7956 4228 996 S 1.7 0.8 0:02.85 screen
 9431 gwilliam 20 0 0 0 0 Z 1.3 0.0 0:00.04 byobu-sta <defunct>
 9432 gwilliam 20 0 0 0 0 Z 1.3 0.0 0:00.04 byobu-sta <defunct>
 9434 gwilliam 20 0 0 0 0 Z 1.3 0.0 0:00.04 byobu-sta <defunct>
 9433 gwilliam 20 0 0 0 0 Z 1.0 0.0 0:00.03 byobu-sta <defunct>
 9435 gwilliam 20 0 0 0 0 Z 0.7 0.0 0:00.02 byobu-sta <defunct>
   42 root 20 0 0 0 0 S 0.3 0.0 0:02.97 kworker/0:2
 9423 gwilliam 20 0 2500 1088 864 R 0.3 0.2 0:00.03 top
 9436 gwilliam 20 0 0 0 0 Z 0.3 0.0 0:00.01 byobu-sta <defunct>
 9437 gwilliam 20 0 4968 856 732 R 0.3 0.2 0:00.01 byobu-status

gwilliams@bob:~$ cat .byobu/status
apport=0
arch=0
battery=0
cpu_count=0
cpu_freq=0
cpu_temp=0
custom=0
date=0
disk=0
disk_io=0
ec2_cost=0
fan_speed=0
hostname=0
ip_address=0
load_average=0
logo=0
mail=0
mem_available=0
mem_used=0
menu=0
network=0
notify_osd=0
processes=0
raid=0
rcs_cost=0
reboot_required=0
release=0
services=0
swap=0
time=0
time_binary=0
time_utc=0
updates_available=0
uptime=0
users=0
whoami=0
wifi_quality=0

Revision history for this message
Dustin Kirkland  (kirkland) said :
#5

Hmm, well, those defunct byobu-status commands do very much concern
me. I can't reproduce here, though.

Could you tar up your ~/.byobu directory and attach, assuming there's
nothing private in there?

Thanks.

Revision history for this message
Geraint Williams (geraint-williams) said :
#6

begin 644 _byoby.tgz
M'XL(`%+HK4T``^W.00K",!"%X3E*3M!DHNF<)Y5B"RF!QB+>7ETH;L2-NOJ_
MS5O,@S?=<*G#)C\5;LSLGFHIO.:#J*:D_3Z9]1*B1MN)BWZJR^B/Y[F4.2_-
M=Z4><O%MRNOHO_3XUDYY=4Z>*V]ZG^X``````````````````/S1%02P6DD`
#*```
`
end

thanks.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.