LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Server + proxy server has become very slow? HDD? (https://www.linuxquestions.org/questions/linux-server-73/server-proxy-server-has-become-very-slow-hdd-4175586784/)

higgins909 08-10-2016 08:52 PM

Server + proxy server has become very slow? HDD?
 
Yesterday I noticed my internet was going very slow. I've tracked it down to my Squid 3 Proxy server. I've checked my disk space which is normally the issue, but I've got quite a bit of space left still. Nothing is going on in "top" When I try to do a few different quick google searches in different tabs, they all take time and some timeout (something like that)I've noticed that my hdd light isn't lighting up too much.

I've tried to use smartmontools, was spammed with a ton of into that I don't really understand. But it said all 3 of my disks "passed" but alot of the smart stuff is in pre-fail and oldage. (yes some are some 02-06 ide drives)

I've also noticed it take a while to log in by ssh. Wouldn't smartmontools say something other then pass if the drive was going out?

Thanks,
Higgins909

TenTenths 08-11-2016 02:47 AM

Did you try a df -i to see if your volume has run out of inodes? I've seen this in the past with Squid servers where many, many, many small/sparse files have filled the inodes tables.

higgins909 08-12-2016 08:35 AM

Code:

admin-ben@DeSer:~$ df -i
Filesystem      Inodes  IUsed    IFree IUse% Mounted on
/dev/sdc2      4825088  52895  4772193    2% /
udev            496873    322  496551    1% /dev
tmpfs            507205    431  506774    1% /run
tmpfs            507205      2  507203    1% /dev/shm
tmpfs            507205      5  507200    1% /run/lock
tmpfs            507205    13  507192    1% /sys/fs/cgroup
/dev/sda1      5005312 160033  4845279    4% /srv/two
/dev/sdb1      12451840  13352 12438488    1% /srv/three
admin-ben@DeSer:~$

admin-ben@DeSer:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdc2        73G  1.8G  67G  3% /
udev            10M    0  10M  0% /dev
tmpfs          793M  9.9M  783M  2% /run
tmpfs          2.0G  4.0K  2.0G  1% /dev/shm
tmpfs          5.0M    0  5.0M  0% /run/lock
tmpfs          2.0G    0  2.0G  0% /sys/fs/cgroup
/dev/sda1        76G  44G  29G  61% /srv/two
/dev/sdb1      187G  112G  66G  63% /srv/three
admin-ben@DeSer:~$

/dev/sda1 is where the squid cache is. I wonder about deleting and rebuilding it. Its supposed to have 30GB capacity and is only using 27GB right now.
I've been logging in faster by ssh and the squid 3 server will run fine for a bit, but then at least the squid3 bogs back down.

I've learned a smidge better on how to use smartctl. smartctl -H all drives "passed". Was trying to run self test, not 100% sure I did it right as one drive had 3 tests and the others had 1 test, but they "Completed without error". They also completed "short offline" almost instantly.


All times are GMT -5. The time now is 08:11 PM.