Daniel O'Connor | 1 Jun 2009 02:10
Picon
Favicon

Re: buildworld fails with "WITHOUT_CDDL=yes" in src.conf

On Mon, 1 Jun 2009, Pavel Greenberg wrote:
> Hello everybody!
> After today's source update I have a problem when doing make
> buildworld:
>
> cc -O2 -fno-strict-aliasing -pipe -march=pentium4
> -DLOADER_NFS_SUPPORT - DBOOT_FORTH
> -I/usr/src/sys/boot/i386/loader/../../ficl -I/usr/src/sys/boot/
> i386/loader/../../ficl/i386 -DLOADER_GZIP_SUPPORT
> -DLOADER_GPT_SUPPORT -I/usr/ src/sys/boot/i386/loader/../../common
> -I. -Wall -I/usr/src/sys/boot/i386/ loader/..
> -I/usr/src/sys/boot/i386/loader/../btx/lib -ffreestanding -
> mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> -mno- sse3  -c
> /usr/src/sys/boot/i386/loader/../../common/interp_forth.c make: don't
> know how to make /usr/obj/usr/src/tmp/usr/lib/libzfs.a. Stop ***
> Error code 2
>
> Stop in /usr/src/sys/boot/i386.
> *** Error code 1
>
> Stop in /usr/src/sys/boot.
> *** Error code 1
>
> Stop in /usr/src/sys.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
(Continue reading)

Ulrich Spörlein | 1 Jun 2009 07:45

Re: ZFS on top of GELI / Intel Atom 330 system

On Sun, 31.05.2009 at 19:28:51 +0300, Dan Naumov wrote:
> Hi
> 
> Since you are suggesting 2 x 8GB USB for a root partition, what is
> your experience with read/write speed and lifetime expectation of
> modern USB sticks under FreeBSD and why 2 of them, GEOM mirror?

Well, my current setup is using an old 2GB CF card, so read/write speeds
suck (14 and 7 MB/s, respectively, IIRC), but then again, there are not
many actual read/writes on / or /usr for my setup anyway.

The 2x 8GB USB sticks I would of course use to gmirror the setup,
although I have been told that this is rather excessive. Modern flash
media should cope with enough write cycles to get you through a decade.
With /var being on GELI+ZFS this point is mood even more, IMHO.

A recent 8GB Sandisk U3 stick of mine manages to read/write ~25MB/s
(working from memory here), so this is pretty much the maximum USB 2.0
is giving you.

Cheers,
Ulrich Spörlein
--

-- 
http://www.dubistterrorist.de/
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"

(Continue reading)

Alberto Villa | 1 Jun 2009 11:57
Picon

Re: ZFS booting without partitions (was: ZFS boot on zfs mirror)

On Thu, May 28, 2009 at 3:58 PM, Lorenzo Perone
<lopez.on.the.lists <at> yellowspace.net> wrote:
> the result is, when choosing the disk with the zfs boot
> sectors in it (in my case F5, which goes to ad6), the kernel
> is not found. the console shows:
>
> forth not found
> definitions not found
> only not found
> (the above repeated several times)
>
> can't load 'kernel'
>
> and I get thrown to the loader prompt.
> lsdev does not show any ZFS devices.

same here on 7-stable (csupped yesterday)
i've followed the same steps, but i've used gpt as explained in the
first mail. the same exact steps worked perfectly on 8-current in
virtualbox
--

-- 
Alberto Villa <villa.alberto <at> gmail.com>
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"

Henri Hennebert | 1 Jun 2009 12:06
Picon
Favicon

Re: ZFS booting without partitions

Lorenzo Perone wrote:
> Hi,
> 
> I tried hard... but without success ;(
> 
> the result is, when choosing the disk with the zfs boot
> sectors in it (in my case F5, which goes to ad6), the kernel
> is not found. the console shows:
> 
> forth not found
> definitions not found
> only not found
> (the above repeated several times)

This is the file /boot/loader from 7.2-STABLE which is wrong.

You can find a copy from 8.0-CURRENT and a script that I tested on a USB 
key) and is running for me:

http://verbier.restart.be/xfer/boot-zfs/

Put this directory somewhere, eg /tmp/boot-zfs

and run the script eg:
`cd /tmp/boot-zfs && sh -x make_usb_key.sh da6 kingston`

good luck

Henri
> 
(Continue reading)

Henri Hennebert | 1 Jun 2009 12:22
Picon
Favicon

/boot/loader can't load kernel if too many pool/devices

Hello,

During my tests (succesful) to directly boot from ZFS (with zfsboot and 
gptzfsboot) I encounter the error "can't boot 'kernel'" if too many 
devices/pools are connected to the machine. In my case:

2 SAS disks with 2 pools
2 SATA disks with 2 pools
1 USB key with one pool

`heap` command:

Active Allocations: 171/173
536576 bytes reserved 527800 bytes allocated

`ls` command:

open '/' failed: too many open files

If I reboot without the USB key all is OK.

If I reboot from the USB key after disconnecting 2 disks all is OK.

By the way, the /boot/loader in 7.2-STABLE don't work, complains about 
forth not found.

The previous tests were made with 7.2-STABLE (May 31) with /boot/loader 
from 8.0-CURRENT.

Henri
(Continue reading)

Henri Hennebert | 1 Jun 2009 12:27
Picon
Favicon

Re: ZFS booting without partitions

Henri Hennebert wrote:
> Lorenzo Perone wrote:
>> Hi,
>>
>> I tried hard... but without success ;(
>>
>> the result is, when choosing the disk with the zfs boot
>> sectors in it (in my case F5, which goes to ad6), the kernel
>> is not found. the console shows:
>>
>> forth not found
>> definitions not found
>> only not found
>> (the above repeated several times)
> 
> This is the file /boot/loader from 7.2-STABLE which is wrong.
> 
> You can find a copy from 8.0-CURRENT and a script that I tested on a USB 
> key) and is running for me:
> 
> http://verbier.restart.be/xfer/boot-zfs/
> 
> Put this directory somewhere, eg /tmp/boot-zfs
> 
> and run the script eg:
> `cd /tmp/boot-zfs && sh -x make_usb_key.sh da6 kingston`
> 
> good luck

CAVEAT:
(Continue reading)

Alberto Villa | 1 Jun 2009 12:55
Picon

Re: ZFS booting without partitions

On Mon, Jun 1, 2009 at 12:06 PM, Henri Hennebert <hlh <at> restart.be> wrote:
> This is the file /boot/loader from 7.2-STABLE which is wrong.
>
> You can find a copy from 8.0-CURRENT and a script that I tested on a USB
> key) and is running for me:

replacing /boot/loader with yours did the job
thanks!
--

-- 
Alberto Villa <villa.alberto <at> gmail.com>
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"

Kip Macy | 1 Jun 2009 15:08
Picon
Favicon

Re: ZFS booting without partitions

Odds are that there are more changes that were made in HEAD to the
loader that need to be MFC'd.

-Kip

On Mon, Jun 1, 2009 at 3:55 AM, Alberto Villa <villa.alberto <at> gmail.com> wrote:
> On Mon, Jun 1, 2009 at 12:06 PM, Henri Hennebert <hlh <at> restart.be> wrote:
>> This is the file /boot/loader from 7.2-STABLE which is wrong.
>>
>> You can find a copy from 8.0-CURRENT and a script that I tested on a USB
>> key) and is running for me:
>
> replacing /boot/loader with yours did the job
> thanks!
> --
> Alberto Villa <villa.alberto <at> gmail.com>
> _______________________________________________
> freebsd-stable <at> freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"
>

--

-- 
When bad men combine, the good must associate; else they will fall one
by one, an unpitied sacrifice in a contemptible struggle.

    Edmund Burke
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
(Continue reading)

Andriy Gapon | 1 Jun 2009 17:07
Picon
Favicon

Re: libzpool assert vs libc assert

on 29/05/2009 15:35 Andriy Gapon said the following:
> So anyone else feels that this is a bug?
> 
> on 28/05/2009 16:55 Andriy Gapon said the following:
>> on 28/05/2009 16:26 Henri Hennebert said the following:
>>> (gdb) bt
>>> #0  0x00000008012a6f22 in strlen () from /lib/libc.so.7
>>> #1  0x00000008012a0feb in open () from /lib/libc.so.7
>>> #2  0x000000080129ea59 in open () from /lib/libc.so.7
>>> #3  0x00000008012a1f2e in vfprintf () from /lib/libc.so.7
>>> #4  0x0000000801291158 in fprintf () from /lib/libc.so.7
>>> #5  0x0000000801290fb0 in __assert () from /lib/libc.so.7
>> I find the above part interesting.
>> Could this be because of the following discrepancy:
>>
>> 1)
>> cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h:
>> extern void __assert(const char *, const char *, int);
>> 2)
>> lib/libc/gen/assert.c:
>> void
>> __assert(func, file, line, failedexpr)
>>         const char *func, *file;
>>         int line;
>>         const char *failedexpr;
>>
>>> #6  0x0000000800fef120 in zmutex_destroy () from /lib/libzpool.so.1
>>> #7  0x000000080102e1a0 in dsl_dataset_fast_stat () from /lib/libzpool.so.1
>>> #8  0x0000000801045ffa in dbuf_find () from /lib/libzpool.so.1
>>> #9  0x0000000801047bf3 in dmu_buf_rele () from /lib/libzpool.so.1
(Continue reading)

Vlad Galu | 1 Jun 2009 17:33
Picon

Unnamed POSIX shared semaphores

Hello,

According to sem_init(3), we can't have shared unnamed semaphores.
However, the following code snippet seems to work just  fine:

-- cut here --
        sem_t semaphore;
        if (sem_init(&semaphore, 1, 10) < 0)
                std::cout << "Couldn't init semaphore: " <<
strerror(errno) << std::endl;
        if (sem_wait(&semaphore) < 0)
                std::cout << "Couldn't decrement semaphore: " <<
strerror(errno) << std::endl;
        int val;
        sem_getvalue(&semaphore, &val);
        std::cout << "Value is " << val << std::endl;
-- and here --

Is this a case where sem_init() silently reports success, or should be
the man page get an update?

Thanks,
Vlad
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe <at> freebsd.org"


Gmane