Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2000 10:01:35 +0930
From:      Greg Lehey <grog@lemis.com>
To:        furio ercolessi <furio@spin.it>
Cc:        freebsd-questions@FreeBSD.ORG, Stefano Riva <sriva@gufi.org>
Subject:   Re: Cannot start softupdates, why?
Message-ID:  <20000523100135.A85231@freebie.lemis.com>
In-Reply-To: <20000523002721.C10915@spin.it>
References:  <20000522161337.A28097@fw.wintelcom.net> <20000523002721.C10915@spin.it> <20000522161337.A28097@fw.wintelcom.net> <20000523005617.D10915@spin.it> <3.0.5.32.20000523013152.00ccdcb0@civetta.gufi.org> <20000523020029.A13070@spin.it> <20000523002721.C10915@spin.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 23 May 2000 at  0:27:21 +0200, furio ercolessi wrote:
> Hi all,
>
> I am trying to enable softupdates on my /var partition, but
> I am having difficulties  (I am a FreeBSD newbie migrating
> from Linux exactly to improve filesystem performance; please
> bear with me).
>
> I did "ln -s ../../contrib/softupdates/*.[ch] ."  in /usr/src/sys/ufs/ffs.
> I put "options SOFTUPDATES" in /usr/src/sys/i386/conf/<NAME>.

Did you run config?

> I make-installed the custom kernel.
> I rebooted, went single user, unmounted my /var partition and did
>    # tunefs -n enable /dev/da0s1e
>    tunefs: soft updates set
>    # tunefs -p /dev/da0s1e
>    tunefs: soft updates:  (-n)                                enabled
>      [...more output...]
>    # mount /dev/da0s1e /var
>    # mount
>      [...]
>    /dev/da0s1e on /var (ufs, local, writes: sync 2 async 0)
>
> Now I understand that at this point softupdates should appear
> in the list within (...).  And this is not just a failure of mount
> to show it: I ran performance tests without seeing any difference
> between "enabled" and "disabled".
> I must have forgotten to do something.  Thanks for any clue...
> (I am on 3.4-RELEASE on a vulgar i586 platform).

On Tuesday, 23 May 2000 at  2:00:29 +0200, furio ercolessi wrote:
> On Tue, May 23, 2000 at 01:31:52AM +0200, Stefano Riva wrote:
>>
>>   Silly question: have you rebooted after tunefs?
>>
>>   Well, in single user mode I always launch tunefs on a read-only mounted
>> filesystem and it works for me...
>>
>> # mount -r /var
>> # tunefs -n enable /var
>> # reboot
>
> I just tried this sequence (ok not really in single user mode
> because I would lose the networking and I don't like to drive 40km
> at 2am to reach the console :), but I killed nearly all the daemons
> in order to free /var).   Still not working.
>
> I am suspecting the kernel build.
> I do have ffs_softdep.c and softdep.h as symlinks in /usr/src/sys/ufs/ffs ;
> however I do not see ffs_softdep.o in /usr/src/sys/compile/<NAME>,
> just ffs_softdep_stub.o.  softupdates.h contains "#define NSOFTUPDATES 0".
> Somehow all this looks suspicious to me.
> Yet I have "options SOFTUPDATES" in /usr/src/sys/i386/conf/<NAME>.
> Is that the right place for that option?

Yes.

No warnings from config?  

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000523100135.A85231>