Hi, since a few of days ago, I noticed my home server turns very slow more than once a day, so every time I run "top" to see what's processes are running, I can see fsck_ufs at the very top, and the hard drive working like mad. I've checked my crontab and there's nothing related to fsck_ufs, where can I start searching for the cause of the problem?, I thought this process should run only at boot or shutdown, but this time it is running -apparently- without a cause. ? uname -a: FreeBSD server.my.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan ?3 07:46:30 UTC 2012 ? ? root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC ?amd64 Regards, Leonardo M. Ram? http://leonardorame.blogspot.com
On Jun 22, 2012, at 5:47 PM, Leonardo M. Ram? <martinrame@yahoo.com> wrote:> Hi, since a few of days ago, I noticed my home server turns very slow more than once a day, so every time I run "top" to see what's processes are running, I can see fsck_ufs at the very top, and the hard drive working like mad. > > I've checked my crontab and there's nothing related to fsck_ufs, where can I start searching for the cause of the problem?, I thought this process should run only at boot or shutdown, but this time it is running -apparently- without a cause. > > > uname -a: > FreeBSD server.my.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > > Regards, > Leonardo M. Ram? > http://leonardorame.blogspot.com > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"Can you tell us more about your server . Does its crash or reboot unexpectedly ? Is this an ungraded server , was it FreeBSD 6,7, or 8 prior ? Also do you have any ufs1 file systems mounted? Please send the output from mount -t ufs and your dmesg . --- Mark saad | mark.saad@longcount.org
On 23/06/2012, at 7:47 AM, Leonardo M. Ram? wrote:> Hi, since a few of days ago, I noticed my home server turns very slow more than once a day, so every time I run "top" to see what's processes are running, I can see fsck_ufs at the very top, and the hard drive working like mad. > > I've checked my crontab and there's nothing related to fsck_ufs, where can I start searching for the cause of the problem?, I thought this process should run only at boot or shutdown, but this time it is running -apparently- without a cause. > >Background fsck. Your server crashed, rebooted, started up and fsck is running in the background while everything else continues. Ways to avoid background fsck: * Disable it completely in /etc/rc.conf: background_fsck="NO". Then fsck finishes completely before the OS continues booting, so there may be extended delays if a crash occurs. * Use gjournal so fsck doesn't need to churn over the disks * Turn on softupdates-journaling for a similar effect. The more important thing is to find out why it crashed - if there was a power outage, hardware or software issue.> uname -a: > FreeBSD server.my.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > > Regards, > Leonardo M. Ram? > http://leonardorame.blogspot.com > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
It boiled down to that: - fsck in background massively slowed i/o and full fsck before starting system is actually preferred/faster for most cases. -- View this message in context: http://freebsd.1045724.n5.nabble.com/fsck-ufs-running-too-often-tp5720964p5721380.html Sent from the freebsd-stable mailing list archive at Nabble.com.
On Sat, Jun 23, 2012 at 10:15:19PM -0500, Adam Vande More wrote:> On Sat, Jun 23, 2012 at 9:54 PM, Jason Hellenthal <jhellenthal@dataix.net>wrote: > > > > At one point it was proven that background fsck was not benefitial. > > > Where can we find this "proof"? >It was in the lists amongst many conversations. -- - (2^(N-1))
On 06/24/2012 06:35, Jakub Lach wrote:> It boiled down to that: > > - fsck in background massively slowed i/o and > full fsck before starting system is actually > preferred/faster for most cases.Try switching to SCHED_4BSD in your kernel conf and see if that helps with slow i/o during load. Doug -- This .signature sanitized for your protection
Thanks for pointer, will check it if I ever enable background fsck again :) -- View this message in context: http://freebsd.1045724.n5.nabble.com/fsck-ufs-running-too-often-tp5720964p5721544.html Sent from the freebsd-stable mailing list archive at Nabble.com.