Need help with slow linode

Hello everyone. I am still learnign linux and need some help with figuring out why my linode is slow. Here is some information.

Linode 64

One CMS installed. (e107.org) for family use only. It is slow with only me using it.

ps -el:

server:/proc# ps -el

F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD

4 S 0 1 0 0 69 0 - 373 - ? 00:00:00 init

1 S 0 2 1 0 69 0 - 0 - ? 00:00:00 keventd

1 S 0 3 1 0 79 19 - 0 - ? 00:00:00 ksoftirqd_CPU0

1 S 0 4 1 0 69 0 - 0 - ? 00:00:00 kswapd

1 S 0 5 1 0 69 0 - 0 - ? 00:00:00 bdflush

1 S 0 6 1 0 69 0 - 0 - ? 00:00:00 kupdated

1 S 0 7 1 0 69 0 - 0 - ? 00:00:00 jfsIO

1 S 0 8 1 0 69 0 - 0 - ? 00:00:00 jfsCommit

1 S 0 9 1 0 69 0 - 0 - ? 00:00:00 jfsSync

1 S 0 10 1 0 69 0 - 0 - ? 00:00:00 xfsbufd

1 S 0 11 1 0 69 0 - 0 - ? 00:00:00 xfslogd/0

1 S 0 12 1 0 69 0 - 0 - ? 00:00:00 xfsdatad/0

1 S 0 13 1 0 59 -20 - 0 - ? 00:00:00 mdrecoveryd

1 S 0 14 1 0 69 0 - 0 - ? 00:00:00 kjournald

5 S 0 195 1 0 70 0 - 830 - ? 00:00:00 sshd

1 S 0 208 1 0 69 0 - 385 - ? 00:00:00 syslogd

1 S 0 211 1 0 69 0 - 373 - ? 00:00:00 klogd

1 S 0 225 1 0 60 0 - 438 - ? 00:00:00 cron

5 S 0 231 1 0 69 0 - 2178 - ? 00:00:00 httpd

1 S 0 236 1 0 69 0 - 534 - ? 00:00:00 authdaemond.pla

1 S 0 238 236 0 69 0 - 534 - ? 00:00:00 authdaemond.pla

1 S 0 239 236 0 69 0 - 534 - ? 00:00:00 authdaemond.pla

1 S 0 240 236 0 69 0 - 534 - ? 00:00:00 authdaemond.pla

1 S 0 241 236 0 69 0 - 534 - ? 00:00:00 authdaemond.pla

1 S 0 242 236 0 69 0 - 534 - ? 00:00:00 authdaemond.pla

5 S 1011 244 231 0 69 0 - 2895 - ? 00:00:01 httpd

5 S 1011 245 231 0 69 0 - 3004 - ? 00:00:03 httpd

5 S 1011 246 231 0 69 0 - 2929 - ? 00:00:01 httpd

5 S 1011 247 231 0 69 0 - 3042 - ? 00:00:05 httpd

5 S 1001 248 1 0 69 0 - 816 - ? 00:00:00 named

5 S 1011 251 231 0 69 0 - 2376 - ? 00:00:00 httpd

5 S 0 261 1 0 69 0 - 393 - ? 00:00:00 couriertcpd

0 S 0 263 1 0 69 0 - 336 - ? 00:00:00 courierlogger

5 S 0 275 1 0 69 0 - 393 - ? 00:00:00 couriertcpd

0 S 0 278 1 0 69 0 - 336 - ? 00:00:00 courierlogger

4 S 0 285 1 0 69 0 - 622 - ? 00:00:00 mysqld_safe

4 S 1000 313 285 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 314 313 0 68 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 315 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 316 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 317 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 318 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 319 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 320 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 321 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 1000 322 314 0 69 0 - 7779 - ? 00:00:00 mysqld

1 S 0 324 1 0 68 0 - 2146 - ? 00:00:00 miniserv.pl

0 S 0 326 1 0 69 0 - 620 - ? 00:00:00 svscanboot

5 S 1011 328 231 0 69 0 - 2945 - ? 00:00:02 httpd

0 S 0 329 326 0 69 0 - 376 - ? 00:00:00 svscan

0 S 0 330 326 0 69 0 - 334 - ? 00:00:00 readproctitle

0 S 0 331 329 0 69 0 - 336 - ? 00:00:00 supervise

0 S 0 332 329 0 69 0 - 336 - ? 00:00:00 supervise

0 S 0 333 329 0 69 0 - 336 - ? 00:00:00 supervise

0 S 0 334 329 0 69 0 - 336 - ? 00:00:00 supervise

4 S 1009 335 331 0 69 0 - 379 - ? 00:00:00 qmail-send

4 S 1004 336 332 0 69 0 - 339 - ? 00:00:00 multilog

4 S 1004 337 334 0 69 0 - 339 - ? 00:00:00 multilog

4 S 1005 338 333 0 68 0 - 384 - ? 00:00:00 tcpserver

0 S 0 344 335 0 69 0 - 371 - ? 00:00:00 qmail-lspawn

4 S 1008 345 335 0 69 0 - 370 - ? 00:00:00 qmail-rspawn

4 S 1007 346 335 0 69 0 - 368 - ? 00:00:00 qmail-clean

5 S 1011 348 231 0 69 0 - 2409 - ? 00:00:00 httpd

4 S 1010 1086 1 0 69 0 - 640 - tty0 00:00:00 sh

4 S 0 1087 1086 0 75 0 - 651 - tty0 00:00:00 bash

5 S 1011 1227 231 0 69 0 - 2322 - ? 00:00:00 httpd

4 R 0 1388 1087 0 74 0 - 573 - tty0 00:00:00 ps

vmstat -s

server:/proc# vmstat -s

59520 total memory

57896 used memory

25672 active memory

25556 inactive memory

1624 free memory

7268 buffer memory

11844 swap cache

263160 total swap

13764 used swap

249396 free swap

2965 non-nice user cpu ticks

0 nice user cpu ticks

2910 system cpu ticks

2319718 idle cpu ticks

0 IO-wait cpu ticks

0 IRQ cpu ticks

0 softirq cpu ticks

45229 pages paged in

39435 pages paged out

2305 pages swapped in

2897 pages swapped out

2402475 interrupts

212189 CPU context switches

1095804001 boot time

1397 forks

Am I asking too much out of my linode? Do I need an upgrade?

Some times it takes 10 to 20 seconds to load the home page the e107 site.

How do I go about finding out what is causing the poor performance?

Thanks,

Shahim

3 Replies

What Linode plan are you on? What distro are you using?

Are you using a firewall? I know there have been some rare instances of a new Linode getting an old one's IP and a bunch of unwanted traffic along with it.

Check /proc/io_status both when you're site is "idle" and right after you go to it.

It turns out to be a problem with the CMS. When I have stats and logging on it makes the loading of pages take at least 5 to 10 times longer. I have both features tuned off for now. I still will probably need an upgrade if my site becomes busy because I have too much stuff running.

Any idea why site stats and logging would slow things down that much? It looks like something is waiting and then just times out because there is no activity on the host while waiting for the page to load.

I am on a Linode64 and running debian.

Thanks untitled9 and the IRC members for your help

Shahim

@shahim:

Any idea why site stats and logging would slow things down that much? It looks like something is waiting and then just times out because there is no activity on the host while waiting for the page to load.
Maybe it's trying to perform dns lookups on the IPs of the remote browser?

-Chris

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct