Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just got a fresh install of Ubuntu server 12.04.2 LTS. Im supposed to use it as a webserver and this is the first time I install Ubuntu server.

The problem now is that it takes forever to install stuff like Apache, PHP, MySQL you name it!

For an example: my MySQL installation took me over an hour to complete. Right now Im installing the Squirrelmail.

I typed sudo apt-get install squirrelmail and its been going on now for like 15-20 minutes and its not yet done. It keeps pushing out one line at the time. Selecting and Unpacking...

Here is the output of iostat

Linux 3.5.0-23-generic (truckstop24)    04/11/2013      _x86_64_        (4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.07    0.01    0.03   13.01    0.00   86.88

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               2.28         6.19       327.52     288608   15259166
sdb               0.01         0.04         0.00       2082          0
sdc               0.01         0.05         0.00       2106          0
dm-0              3.72         6.08       327.52     283221   15259160
dm-1              0.01         0.02         0.00       1148          0

and here is the top

    top - 15:34:14 up 12:54,  3 users,  load average: 2.71, 2.43, 1.69
    Tasks: 108 total,   1 running, 107 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 74.9%id, 25.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   8140992k total,  1680876k used,  6460116k free,    96020k buffers
    Swap:  8347644k total,        0k used,  8347644k free,  1204392k cached

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
1040 mysql     20   0  993m  46m 7688 S    0  0.6   0:05.62 mysqld
12033 roger     20   0 17340 1272  944 R    0  0.0   0:00.19 top
    1 root      20   0 24328 2296 1360 S    0  0.0   0:01.35 init
    2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd
    3 root      20   0     0    0    0 S    0  0.0   0:00.70 ksoftirqd/0
    6 root      RT   0     0    0    0 S    0  0.0   0:00.16 migration/0
    7 root      RT   0     0    0    0 S    0  0.0   0:00.09 watchdog/0
    8 root      RT   0     0    0    0 S    0  0.0   0:00.07 migration/1
   10 root      20   0     0    0    0 S    0  0.0   0:00.25 ksoftirqd/1
   11 root      RT   0     0    0    0 S    0  0.0   0:00.08 watchdog/1
   12 root      RT   0     0    0    0 S    0  0.0   0:00.12 migration/2
   14 root      20   0     0    0    0 S    0  0.0   0:00.15 ksoftirqd/2
   15 root      RT   0     0    0    0 S    0  0.0   0:00.08 watchdog/2
   16 root      RT   0     0    0    0 S    0  0.0   0:00.07 migration/3
   17 root      20   0     0    0    0 S    0  0.0   0:00.68 kworker/3:0
   18 root      20   0     0    0    0 S    0  0.0   0:00.18 ksoftirqd/3
   19 root      RT   0     0    0    0 S    0  0.0   0:00.08 watchdog/3
   20 root       0 -20     0    0    0 S    0  0.0   0:00.00 cpuset
   21 root       0 -20     0    0    0 S    0  0.0   0:00.00 khelper
   22 root      20   0     0    0    0 S    0  0.0   0:00.00 kdevtmpfs
   23 root       0 -20     0    0    0 S    0  0.0   0:00.00 netns
   24 root      20   0     0    0    0 S    0  0.0   0:00.00 kworker/u:1
   25 root      20   0     0    0    0 S    0  0.0   0:00.32 sync_supers
   26 root      20   0     0    0    0 S    0  0.0   0:00.00 bdi-default
   27 root       0 -20     0    0    0 S    0  0.0   0:00.00 kintegrityd
   28 root       0 -20     0    0    0 S    0  0.0   0:00.00 kblockd
   29 root       0 -20     0    0    0 S    0  0.0   0:00.00 ata_sff
   30 root      20   0     0    0    0 S    0  0.0   0:00.07 khubd
   31 root       0 -20     0    0    0 S    0  0.0   0:00.00 md
   34 root      20   0     0    0    0 S    0  0.0   0:00.01 khungtaskd
   35 root      20   0     0    0    0 S    0  0.0   0:00.00 kswapd0
   36 root      25   5     0    0    0 S    0  0.0   0:00.00 ksmd
   37 root      39  19     0    0    0 S    0  0.0   0:00.00 khugepaged
   38 root      20   0     0    0    0 S    0  0.0   0:00.00 fsnotify_mark
   39 root      20   0     0    0    0 S    0  0.0   0:00.00 ecryptfs-kthrea
   40 root       0 -20     0    0    0 S    0  0.0   0:00.00 crypto
   49 root       0 -20     0    0    0 S    0  0.0   0:00.00 kthrotld
   51 root      20   0     0    0    0 S    0  0.0   0:00.00 scsi_eh_0
   52 root      20   0     0    0    0 S    0  0.0   0:00.03 scsi_eh_1
   53 root      20   0     0    0    0 S    0  0.0   0:00.09 scsi_eh_2
   54 root      20   0     0    0    0 S    0  0.0   0:00.01 scsi_eh_3
   55 root      20   0     0    0    0 S    0  0.0   0:00.02 scsi_eh_4
   56 root      20   0     0    0    0 S    0  0.0   0:00.01 scsi_eh_5
   60 root      20   0     0    0    0 S    0  0.0   0:00.00 kworker/u:5
   63 root       0 -20     0    0    0 S    0  0.0   0:00.00 binder
   82 root       0 -20     0    0    0 S    0  0.0   0:00.00 deferwq
   83 root      20   0     0    0    0 S    0  0.0   0:00.91 kworker/1:1
   84 root       0 -20     0    0    0 S    0  0.0   0:00.00 charger_manager
   85 root       0 -20     0    0    0 S    0  0.0   0:00.00 devfreq_wq
  149 root      20   0     0    0    0 S    0  0.0   0:00.00 kworker/3:1
  177 root      20   0     0    0    0 S    0  0.0   0:00.74 kworker/2:1
  256 root       0 -20     0    0    0 S    0  0.0   0:00.00 kdmflush
  273 root       0 -20     0    0    0 S    0  0.0   0:00.00 kdmflush
  282 root      20   0     0    0    0 D    0  0.0   0:01.23 jbd2/dm-0-8
  283 root       0 -20     0    0    0 S    0  0.0   0:00.00 ext4-dio-unwrit

Hope someone can help :) Thanks for reading

share|improve this question
    
What hardware is it on? –  Bert Apr 11 '13 at 14:02
2  
Looks like virtual hosting on an extremely busy host and highly throttled IOPS. –  Steve-o Apr 11 '13 at 14:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.