I'm new to FreeBSD. Please pardon me if this is frequently asked or a known issue. I tried hard searching this forum and the web but was not able to find any clues.
I installed FreeBSD in an old Zotac AMD E-350 with a new WD 1TB 2.5" HDD. The OS was installed with standard UFS partitions for / and /home.
The problem I have is that disk I/O is "randomly" / "intermittently" slow. Viewing or saving random text file, with cat or vi may take about 1-2s. It is not reproducible consistently. I could be saving something on rc.conf with no issues, but
I confirmed that this isn't a disk or hardware issue because I've tried the following to troubleshoot:
1. Re-installing with different partition sizes for / and /home
2. Used one entire / partition
3. Enabled "noatime" on every partition
4. Installed Ubuntu on the hard disk and didn't reproduce the issue
5. Bonnie test doesn't show slowness
6. Rsync write speed into the hard disk is about 310Mbps
In short, the hard disk on FreeBSD performs normally for large sequential read or write. But random sysadmin work like reading or writing files will intermittently pause for 1-2s. It is like the OS may have intermittent slow seek time.
There are not HDD sleep tools installed. It happens randomly when I'm messing around and navigating around the OS. Can you provide clues to where else I can look to find out why FreeBSD is behaving this way?
I installed FreeBSD in an old Zotac AMD E-350 with a new WD 1TB 2.5" HDD. The OS was installed with standard UFS partitions for / and /home.
The problem I have is that disk I/O is "randomly" / "intermittently" slow. Viewing or saving random text file, with cat or vi may take about 1-2s. It is not reproducible consistently. I could be saving something on rc.conf with no issues, but
vi /etc/fstab may take 2s to show up. This also happens on files in the /home partition.I confirmed that this isn't a disk or hardware issue because I've tried the following to troubleshoot:
1. Re-installing with different partition sizes for / and /home
2. Used one entire / partition
3. Enabled "noatime" on every partition
4. Installed Ubuntu on the hard disk and didn't reproduce the issue
5. Bonnie test doesn't show slowness
6. Rsync write speed into the hard disk is about 310Mbps
In short, the hard disk on FreeBSD performs normally for large sequential read or write. But random sysadmin work like reading or writing files will intermittently pause for 1-2s. It is like the OS may have intermittent slow seek time.
There are not HDD sleep tools installed. It happens randomly when I'm messing around and navigating around the OS. Can you provide clues to where else I can look to find out why FreeBSD is behaving this way?