Date: Mon, 8 Oct 2007 15:38:46 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Dag-Erling Sm??rgrav <des@des.no> Cc: freebsd-fs@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: ZFS kmem_map too small. Message-ID: <20071008133846.GP2327@garage.freebsd.pl> In-Reply-To: <86bqb97mym.fsf@ds4.des.no> References: <20071005000046.GC92272@garage.freebsd.pl> <20071008121523.GM2327@garage.freebsd.pl> <86bqb97mym.fsf@ds4.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
--yEbVe0JFHWhrOjGA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 08, 2007 at 03:30:41PM +0200, Dag-Erling Sm??rgrav wrote: > Pawel Jakub Dawidek <pjd@FreeBSD.org> writes: > > I'm not sure if it's not too late to ask re@ about increasing the > > default kmem size at least on amd64. ~300MB we have there is silly > > small. >=20 > Speaking of which, I tried setting vm.kmem_size to 2G on a C2D system > with 4 GB RAM, but it simply panics: >=20 > OK set vm.kmem_size=3D2G > OK boot -s > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2007 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-CURRENT #8: Tue Sep 25 13:31:41 CEST 2007 > des@ds4.des.no:/usr/obj/usr/src/sys/ds4 > kmem_suballoc: bad status return of 3. > panic: kmem_suballoc > cpuid =3D 0 > KDB: enter: panic > [thread pid 0 tid 0 ] > Stopped at kdb_enter+0x31: popq %rbp > db> where > Tracing pid 0 tid 0 td 0xffffffff805af4a0 > kdb_enter() at kdb_enter+0x31 > panic() at panic+0x166 > kmem_suballoc() at kmem_suballoc+0xc3 > kmeminit() at kmeminit+0x16e > mi_startup() at mi_startup+0x59 > btext() at btext+0x2c > db> reset >=20 > with vm.kmem_size unset and vm.kmem_size_max=3D2G, it boots fine: >=20 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (2400.01-MHz K8-clas= s CPU) > Origin =3D "GenuineIntel" Id =3D 0x6f6 Stepping =3D 6 > Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,= PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Features2=3D0xe3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PD= CM> > AMD Features=3D0x20100800<SYSCALL,NX,LM> > AMD Features2=3D0x1<LAHF> > Cores per package: 2 > usable memory =3D 4286398464 (4087 MB) > avail memory =3D 4130979840 (3939 MB) > ACPI APIC Table: <GBT GBTUACPI> > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 2 > ioapic0 <Version 2.0> irqs 0-23 on motherboard > [...] For i386 one has to set, eg. 'options KVA_PAGES=3D512' to the kernel config to be able to define kmem larger than ~700MB. I guess you're running amd64, maybe there is similar requirement? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --yEbVe0JFHWhrOjGA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHCjLmForvXbEpPzQRAkoHAKDf/geY/dDi93PiMUUQVReTNb+AhwCgonvy erlqcJb/7HloqTc2UVOSnYs= =lU5S -----END PGP SIGNATURE----- --yEbVe0JFHWhrOjGA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071008133846.GP2327>