Hi,
My FreeBSD system has a bad responsiveness when the hard drive load is high. With bad responsiveness I mean a long delay for the execution of commands, e.g. when commanding
and has four harddrives in total, the system is on a gmirror software RAID 1 and the database data is stored on a gstripe RAID 0. The server has 32 GB memory and 4 GB swap, but which is never in use during the database import.
Here is the RAID configuration information:
Gmirror:
Gstripe:
When monitoring the load with
My FreeBSD system has a bad responsiveness when the hard drive load is high. With bad responsiveness I mean a long delay for the execution of commands, e.g. when commanding
ls there is a delay for several minutes before I get the directory listing. The system is really close to unusable. I am monitoring the hard drive load with sysutils/atop. I am observing this behavior while importing a large dataset (results in +300 GB data) into my databases/postgresql93-server database. My server is running
Code:
>uname -a
FreeBSD bilbo.metrico 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Here is the RAID configuration information:
Gmirror:
Code:
>gmirror list -a
Geom name: gm
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 1477567550
Providers:
1. Name: mirror/gm
Mediasize: 500107861504 (465G)
Sectorsize: 512
Mode: r5w5e14
Consumers:
1. Name: ada0
Mediasize: 500107862016 (465G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: DIRTY
GenID: 0
SyncID: 1
ID: 3286445061
2. Name: ada1
Mediasize: 500107862016 (465G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: DIRTY
GenID: 0
SyncID: 1
ID: 459509412
Geom name: gm.sync
Code:
>gstripe list -a
Geom name: gs
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
Stripesize: 8192
ID: 1042782665
Providers:
1. Name: stripe/gs
Mediasize: 1200254517248 (1.1T)
Sectorsize: 512
Stripesize: 8192
Stripeoffset: 0
Mode: r1w1e1
Consumers:
1. Name: ada2
Mediasize: 600127266816 (558G)
Sectorsize: 512
Mode: r1w1e2
Number: 0
2. Name: ada3
Mediasize: 600127266816 (558G)
Sectorsize: 512
Mode: r1w1e2
Number: 1
When monitoring the load with
atop, the highest load is on the ada1 drive of the gmirror RAID and it is usually close to 90% or above. The program for the import is converters/osm2pgsql which uses 19.5 GB RAM of the total 32 GB, so there is still plenty for the database and system left. Any ideas why the system has such a bad response time and what I can do about it, and what the reason for the bad responsiveness might be?