Re: how do I tell FreeBSD to sync, for real ?
On Tue, Nov 08, 2005 at 04:34:04PM -0500, user wrote: Sometimes you delete a large batch of files, or you do some other serious FS operations and the output of `df` does not tell you immediately of the new disk space, etc. If you run something like: sync Or even: sync ; sync user, can you describe a reproducible phenomenon? Did you delete something from /var/log and you're waiting for df to reflect that? This is a common one ... if a process has a filehandle open, and you delete the file, the blocks on disk are not freed until the process closes that filehandle. If this is what's thwarting you, check out lsof. :) Cheers, -danny -- http://dannyman.toldme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how do I tell FreeBSD to sync, for real ?
Sometimes you delete a large batch of files, or you do some other serious FS operations and the output of `df` does not tell you immediately of the new disk space, etc. If you run something like: sync Or even: sync ; sync it still doesn't show up. You either have to wait for a while, or you have to get silly with something like: sync ; sync ; sync ; sync ; sync ; sync ; sync (or unmount and remount the FS) - So my question is, well first off, why does this happen this way ? But mostly what I want to know is, is there a more graceful way to tell FreeBSD sync for real this time, not just for joke only ? Basically, is there a nicer way to get what I want than: sync ; sync ; sync ; sync ; sync ; sync ; sync thx. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do I tell FreeBSD to sync, for real ?
user [EMAIL PROTECTED] writes: Sometimes you delete a large batch of files, or you do some other serious FS operations and the output of `df` does not tell you immediately of the new disk space, etc. If you run something like: sync Or even: sync ; sync it still doesn't show up. You either have to wait for a while, or you have to get silly with something like: sync ; sync ; sync ; sync ; sync ; sync ; sync (or unmount and remount the FS) - So my question is, well first off, why does this happen this way ? But mostly what I want to know is, is there a more graceful way to tell FreeBSD sync for real this time, not just for joke only ? Basically, is there a nicer way to get what I want than: sync ; sync ; sync ; sync ; sync ; sync ; sync sleep 30? http://www.usenix.org/publications/library/proceedings/usenix99/full_papers/mckusick/mckusick.pdf ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do I tell FreeBSD to sync, for real ?
On 8 Nov 2005, Lowell Gilbert wrote: So my question is, well first off, why does this happen this way ? But mostly what I want to know is, is there a more graceful way to tell FreeBSD sync for real this time, not just for joke only ? Basically, is there a nicer way to get what I want than: sync ; sync ; sync ; sync ; sync ; sync ; sync sleep 30? http://www.usenix.org/publications/library/proceedings/usenix99/full_papers/mckusick/mckusick.pdf No, I'm not asking why do I need to sync ... I understand why I need to wait, or issue a sync command. No problems there. What I am asking is, why is one issuance of `sync` not enough ? Why is two not enough ? Why do I need to issue 6 or 8 of them ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do I tell FreeBSD to sync, for real ?
On Tue, 8 Nov 2005, David Kirchner wrote: On 11/8/05, user [EMAIL PROTECTED] wrote: No, I'm not asking why do I need to sync ... I understand why I need to wait, or issue a sync command. No problems there. What I am asking is, why is one issuance of `sync` not enough ? Why is two not enough ? Why do I need to issue 6 or 8 of them ? Softupdates is why. If you disable softupdates (tunefs -n disable /dev/whatever) you shouldn't have to worry about the sync delay any more. I do wish there was a way to force it to sync to disk on demand, though. Yes, that is what I am looking for. Well, a way besides: sync ; sync ; sync ; sync ; sync ; sync ; echo boy am I a jackass or: mount -ur /mnt/fs ; mount -uw /mnt/fs ; echo what a loser I am ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do I tell FreeBSD to sync, for real ?
On 11/8/05, user [EMAIL PROTECTED] wrote: No, I'm not asking why do I need to sync ... I understand why I need to wait, or issue a sync command. No problems there. What I am asking is, why is one issuance of `sync` not enough ? Why is two not enough ? Why do I need to issue 6 or 8 of them ? Softupdates is why. If you disable softupdates (tunefs -n disable /dev/whatever) you shouldn't have to worry about the sync delay any more. I do wish there was a way to force it to sync to disk on demand, though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]