Re: panic when booting HEAD on i386

2013-04-21 Thread Konstantin Belousov
On Sun, Apr 21, 2013 at 01:57:03PM +0800, Ganbold Tsagaankhuu wrote:
 On Sat, Apr 20, 2013 at 11:21 PM, Konstantin Belousov
 kostik...@gmail.comwrote:
 
  On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote:
   Hi,
  
   I'm trying to boot HEAD after updating, but unfortunately it panics with
   following message:
  
   panic: kmem_suballoc: bad status return of 3.
  
   I was only able to get image of the panic.
  
   http://www.mnbsd.org/ganbold/IMG_20130420_222353-2.jpg
  
   Does anybody see same panic booting on i386 lately?
   Tried clang, and it panics also.
 
  How much memory do you have ?
  Do you have any tunables in the loader.conf ?
 
 
 Following settings caused the panic:
 
 vm.kmem_size=999M
 vm.kmem_size_max=999M
I cannot imagine how this could work earlier as well, except by chance.

 
 Whether it is regression or not in previous version of kernel (r244046) it
 didn't panic on boot.
 Seems no information on UPDATING either.
Do you propose to enumerate all non-working or panic-provoking settings in
loader.conf ?

Why did you set this value at all ?

KVA on i386 is limited to slightly less then 1GB, where all the kernel
maps must be instantiated. Kernel uses the value of the tunable
vm.kmem_size literally, except it makes a mild attempt to prevent
foot-shooting by capping kmem_size to 2 * physical memory size.

You neglected to answer how much memory is installed on your machine,
but I suspect you have enough so that overblown kmem_map cannot coexists
with other kernel VA consumers.


pgp909eLEKQPT.pgp
Description: PGP signature


Re: panic when booting HEAD on i386

2013-04-21 Thread Ganbold Tsagaankhuu
On Sun, Apr 21, 2013 at 7:27 PM, Konstantin Belousov kostik...@gmail.comwrote:

 On Sun, Apr 21, 2013 at 01:57:03PM +0800, Ganbold Tsagaankhuu wrote:
  On Sat, Apr 20, 2013 at 11:21 PM, Konstantin Belousov
  kostik...@gmail.comwrote:
 
   On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote:
Hi,
   
I'm trying to boot HEAD after updating, but unfortunately it panics
 with
following message:
   
panic: kmem_suballoc: bad status return of 3.
   
I was only able to get image of the panic.
   
http://www.mnbsd.org/ganbold/IMG_20130420_222353-2.jpg
   
Does anybody see same panic booting on i386 lately?
Tried clang, and it panics also.
  
   How much memory do you have ?
   Do you have any tunables in the loader.conf ?
  
 
  Following settings caused the panic:
 
  vm.kmem_size=999M
  vm.kmem_size_max=999M
 I cannot imagine how this could work earlier as well, except by chance.


Right, probably by chance it didn't cause panic in previous version.



 
  Whether it is regression or not in previous version of kernel (r244046)
 it
  didn't panic on boot.
  Seems no information on UPDATING either.
 Do you propose to enumerate all non-working or panic-provoking settings in
 loader.conf ?


Not really.



 Why did you set this value at all ?


These are the settings that I did for zfs, since my machine has zfs and
probably it is not even worth to run zfs on 2GB system.
It is my fault.



 KVA on i386 is limited to slightly less then 1GB, where all the kernel
 maps must be instantiated. Kernel uses the value of the tunable
 vm.kmem_size literally, except it makes a mild attempt to prevent
 foot-shooting by capping kmem_size to 2 * physical memory size.

 You neglected to answer how much memory is installed on your machine,



As mentioned in one of my previous email I have 2GB machine which is
probably not worth to have zfs on such system.
Sorry for the noise.

thanks,

Ganbold




 but I suspect you have enough so that overblown kmem_map cannot coexists
 with other kernel VA consumers.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: panic when booting HEAD on i386

2013-04-21 Thread Joshua Isom

On 4/21/2013 6:54 AM, Ganbold Tsagaankhuu wrote:

As mentioned in one of my previous email I have 2GB machine which is
probably not worth to have zfs on such system.
Sorry for the noise.

thanks,

Ganbold




Before I upgraded my system, I used 2GB of ram with ZFS on root, no UFS 
on the system.  Right now my ARC is 17GB, and in some situations it 
seems slower with the excess caching.  Here are the memory settings I used.


vm.kmem_size=512M
vm.kmem_size_max=1024M
vfs.zfs.arc_max=512M

One major difference is I'm using amd64, not i386.  Although ZFS works 
on i386, it uses a lot of 64 bit math, for performance reasons you 
should use ZFS on amd64.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


panic when booting HEAD on i386

2013-04-20 Thread Ganbold Tsagaankhuu
Hi,

I'm trying to boot HEAD after updating, but unfortunately it panics with
following message:

panic: kmem_suballoc: bad status return of 3.

I was only able to get image of the panic.

http://www.mnbsd.org/ganbold/IMG_20130420_222353-2.jpg

Does anybody see same panic booting on i386 lately?
Tried clang, and it panics also.

thanks,

Ganbold
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: panic when booting HEAD on i386

2013-04-20 Thread David Wolfskill
On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote:
 Hi,
 
 I'm trying to boot HEAD after updating, but unfortunately it panics with
 following message:
 
 panic: kmem_suballoc: bad status return of 3.
 
 I was only able to get image of the panic.
 
 http://www.mnbsd.org/ganbold/IMG_20130420_222353-2.jpg
 
 Does anybody see same panic booting on i386 lately?
 Tried clang, and it panics also.
 ...

My (daily) updates/smoke tests on i386 were uneventful both yesterday 
today -- both on my laptop  my build machine (the latter of which runs
a GENERIC kernel).  I use clang as the system compiler; here are some
recent uname strings:

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #874  
r249616M/249616:130: Thu Apr 18 07:40:02 PDT 2013 
r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #875  
r249644M/249644:130: Fri Apr 19 05:42:45 PDT 2013 
r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

FreeBSD g1-227.catwhisker.org 10.0-CURRENT FreeBSD 10.0-CURRENT #876  
r249688M/249689:130: Sat Apr 20 05:12:39 PDT 2013 
r...@g1-227.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

Looking at the image you provided, I see that you're at r249649;
my builds bracketing that were at r249644  r249688.  You could try updating
to r249688, perhaps -- it certainly worked for me.

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


pgpfZ9ltzhLdC.pgp
Description: PGP signature


Re: panic when booting HEAD on i386

2013-04-20 Thread Konstantin Belousov
On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote:
 Hi,
 
 I'm trying to boot HEAD after updating, but unfortunately it panics with
 following message:
 
 panic: kmem_suballoc: bad status return of 3.
 
 I was only able to get image of the panic.
 
 http://www.mnbsd.org/ganbold/IMG_20130420_222353-2.jpg
 
 Does anybody see same panic booting on i386 lately?
 Tried clang, and it panics also.

How much memory do you have ?
Do you have any tunables in the loader.conf ?
What was the previous version of the kernel which worked for you ?

r249538 boots for me on i386 with memory sizes of 64M, 2G and 4G.


pgpCV4brT2YEF.pgp
Description: PGP signature


Re: panic when booting HEAD on i386

2013-04-20 Thread Ganbold Tsagaankhuu
On Sat, Apr 20, 2013 at 11:21 PM, Konstantin Belousov
kostik...@gmail.comwrote:

 On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote:
  Hi,
 
  I'm trying to boot HEAD after updating, but unfortunately it panics with
  following message:
 
  panic: kmem_suballoc: bad status return of 3.
 
  I was only able to get image of the panic.
 
  http://www.mnbsd.org/ganbold/IMG_20130420_222353-2.jpg
 
  Does anybody see same panic booting on i386 lately?
  Tried clang, and it panics also.

 How much memory do you have ?


2GB.

http://people.freebsd.org/~ganbold/dmesg.txt



 Do you have any tunables in the loader.conf ?


Just checked, it seems old kqemu, atapicam etc. were there.
This is what was on old kernel right after WITNESS line:

link_elf: symbol _mtx_unlock_flags undefined
KLD file kqemu.ko - could not finalize loading
link_elf: symbol ata_controlcmd undefined
KLD file atapicam.ko - could not finalize loading



 What was the previous version of the kernel which worked for you ?


r244046.

I will disable kqemu, atapicam etc and try again.

thanks,

Ganbold




 r249538 boots for me on i386 with memory sizes of 64M, 2G and 4G.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: panic when booting HEAD on i386

2013-04-20 Thread Ganbold Tsagaankhuu
On Sat, Apr 20, 2013 at 11:21 PM, Konstantin Belousov
kostik...@gmail.comwrote:

 On Sat, Apr 20, 2013 at 10:52:35PM +0800, Ganbold Tsagaankhuu wrote:
  Hi,
 
  I'm trying to boot HEAD after updating, but unfortunately it panics with
  following message:
 
  panic: kmem_suballoc: bad status return of 3.
 
  I was only able to get image of the panic.
 
  http://www.mnbsd.org/ganbold/IMG_20130420_222353-2.jpg
 
  Does anybody see same panic booting on i386 lately?
  Tried clang, and it panics also.

 How much memory do you have ?
 Do you have any tunables in the loader.conf ?


Following settings caused the panic:

vm.kmem_size=999M
vm.kmem_size_max=999M

Whether it is regression or not in previous version of kernel (r244046) it
didn't panic on boot.
Seems no information on UPDATING either.

Ganbold



 What was the previous version of the kernel which worked for you ?

 r249538 boots for me on i386 with memory sizes of 64M, 2G and 4G.

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org