Ubuntu 14 - poor performance

I just installed Ubuntu 14.04 (eMMC flashed) and something seems wrong. I have a software package that I compile. When I compile it under Debian, it takes about 45 minutes to complete. Now with Ubuntu 14 it has takes 76-78 minutes. Is there something that I should look at or do? I did add a swap file but that did not help.

Has anyone else seen a performance hit with Ubuntu 14.04?

Here is the link to the instructions for downloading and building the application.

http://wiki.rocrail.net/doku.php?id=buildrr-en

I forgot to mention that this is on a BBB.

I forgot to mention that this is on a BBB.

I just installed Ubuntu 14.04 (eMMC flashed) and something seems wrong. I have a software package that I compile. When I compile it under Debian, it takes about 45 minutes to complete. Now with Ubuntu 14 it has takes 76-78 minutes. Is there something that I should look at or do? I did add a swap file but that did not help.

Has anyone else seen a performance hit with Ubuntu 14.04?

Here is the link to the instructions for downloading and building the application.

http://wiki.rocrail.net/doku.php?id=buildrr-en

The problem is the memory taken by the Ubuntu desktop. Try a light weight desktop like XFCE, LXDE or Lubuntu. Remember, BBB only has 512MB RAM so it isn’t advisable to use a memory hog like Unity. You can test this by running top or atop in a terminal while you run your app. You will see that available memory will be almost zero and that is why it is sssooo ssslloooww.

Regards,
John

cpu-freq governor?

I checked the governor. I set it to performance. No change

There is no X or desktop included with the image i used so that is not the issue.

Rich

Here is the output from vmstat 2

You can see where I start the build.

vmstat 2

procs -----------memory---------- —swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 832 12476 14188 427668 0 0 5 38 83 61 10 1 88 1 0
0 0 832 12420 14188 427668 0 0 0 0 21 47 0 0 100 0 0
0 0 832 12452 14188 427668 0 0 0 0 23 45 0 1 100 0 0
0 0 832 12452 14196 427664 0 0 0 6 27 54 0 0 100 0 0
0 0 832 12452 14196 427668 0 0 0 0 21 50 0 0 100 0 0
0 0 832 12296 14196 427668 0 0 0 2 23 47 0 0 100 0 0
0 0 832 12328 14196 427668 0 0 0 0 26 45 0 0 100 0 0
0 0 832 12328 14200 427664 0 0 0 4 31 54 0 0 100 0 0
0 0 832 12296 14200 427668 0 0 0 0 24 44 0 0 100 0 0
0 0 832 12320 14200 427668 0 0 0 0 35 70 0 0 100 0 0
1 0 832 4308 14200 426788 0 0 0 684 560 399 69 13 19 0 0
0 0 832 13136 14200 425656 0 0 0 128 201 94 25 2 73 0 0
0 1 832 9392 14204 425412 0 0 0 102 261 258 34 6 34 26 0
1 0 832 9020 14208 425528 0 0 0 154 568 272 91 9 0 1 0
1 0 832 7160 14208 425588 0 0 0 92 448 278 70 8 22 0 0
1 0 832 13300 14216 425660 0 0 0 240 597 490 84 15 0 1 0
1 0 832 12152 14216 425704 0 0 0 130 635 513 87 13 0 0 0
2 0 832 10540 14224 425756 0 0 0 172 580 407 87 13 0 1 0
1 0 832 8308 14224 425876 0 0 0 140 585 431 91 9 0 0 0
2 0 832 10540 14224 425924 0 0 0 198 572 329 89 11 0 0 0
1 0 832 9300 14232 426016 0 0 0 172 584 436 88 11 0 0 0
1 0 832 9548 14232 426076 0 0 0 162 563 267 90 10 0 0 0
1 0 832 8152 14240 426148 0 0 0 130 476 373 68 11 22 0 0
1 0 832 8680 14240 426216 0 0 0 152 599 541 83 17 0 0 0
1 0 832 7068 14240 426264 0 0 0 98 461 340 71 8 20 0 0

Show us the output of pstree
.

Here is pstree -A

pstree -A
init-±acpid

-avahi-daemon—avahi-daemon
-cron
-dbus-daemon
-dhclient
-7*[getty]
-rsyslogd—3*[{rsyslogd}]
-sshd—bash
-sshd-±sshd—bash—tail

-sshd—bash—su—ksh—pstree
-sshd---ksh -systemd-udevd -udhcpd -upstart-file-br -upstart-socket- -upstart-udev-br

and top

top

top - 11:59:28 up 1 day, 8:37, 4 users, load average: 0.01, 0.05, 0.05
Tasks: 82 total, 1 running, 81 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 508500 total, 474208 used, 34292 free, 13664 buffers
KiB Swap: 1048572 total, 832 used, 1047740 free. 409384 cached Mem

Ok so take a look at the output of pstree there. Notice how the “init system” is all over the tree ? First you have init as pid 1. then way down the tree you have systemd, followed by several upstart processes. This is normal from what I can tell on my own PC based Ubuntu installs ( actually Lubuntu, the same thing with different window manager ). But I also think this helps Ubuntu perform noticeably slower compared to Debian.

I notice a performance difference on PCs as well. Debian, being much lighter just does some things faster.

However, you can always google “Ubuntu 14.04 performance tuning” and see what you turn up. With that said, is there a particular package that Ubuntu has that Debian does not ? Otherwise ditch Ubuntu and go back to Debian . . .

There is also the chance that you somehow botched something on the Ubuntu install. This can also cause performance issues. Such as if you did not completely delete the root file system from debian before installing Ubuntu on the same media. . . . You might think this would not be a problem. but it can be . . .

Unles I flashed it wrong twice in a row. I can’t see how I could have botched the job.

I think that the next step is to report this as a bug. Something in the kernel itself is causing the issue.

Does anyone have a url for reporting bugs?

Richard

I just flashed Ubuntu 13.10 and the performance is back to normal. Compile time of 42m38s.

I will flash Ubuntu 14 again and retest.

The issue isn’t Ubuntu but the libwxgtk3.0-dev package vs the libwxgtk2.8-dev package. 3.0 apparantly has a bunch more stuff.

Sorry for the false alarm.