f30e Panic with generic PAE kernel - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old May 2nd, 2012, 00:34
hackish hackish is offline
Junior Member
 
Join Date: Feb 2012
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
Default Panic with generic PAE kernel

I wanted my hosting provider to install some more RAM and they pointed out that I need to run FreeBSD 64 bit or PAE. Fearing too many incompatibilities I opted to try PAE as I won't have to recompile a number of specialized servers (that were written years before people dreamed of 64 bit processors...).

So I compiled and updated the system from 8.2-8.3. This booted fine with the GENERIC kernel. I then tried compiling the generic PAE kernel but on boot it panics immediately with kmem_suballoc error 3. The server has only 4GB installed at the moment but they will be installing an additional 4GB of RAM.

I am running ZFS.

/boot/loader.conf
Code:
vm.kmem_size="1536M"
vm.kmem_size_max="1536M"
vfs.zfs.arc_max="80M"
vfs.zfs.vdev.cache.size="10M"
vfs.zfs.prefetch_disable=0
accf_http_load="YES"
accf_data_load="YES"
Any ideas?

Last edited by DutchDaemon; May 2nd, 2012 at 01:26. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old May 2nd, 2012, 04:46
hackish hackish is offline
Junior Member
 
Join Date: Feb 2012
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I've tried dozens of settings and finally found one that allowed it to boot with the PAE kernel.

Code:
vm.kmem_size="512M"
vfs.zfs.prefetch_disable=0
accf_http_load="YES"
accf_data_load="YES"
The majority of other things I tried just caused the kernel to panic. I believe in the future I will need to figure out some way to install the 64 bit version of FreeBSD on this server instead of the one I have. Difficult with no physical access.
Reply With Quote
  #3  
Old May 2nd, 2012, 06:52
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,711
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Yes, I definitely recommend going 64 bit, especially in combination with ZFS. PAE is more or less a stop-gap. The extra memory won't do you any good either. Applications need to be specifically written to make use of PAE.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old May 3rd, 2012, 05:26
Terry_Kennedy's Avatar
Terry_Kennedy Terry_Kennedy is offline
Member
 
Join Date: Apr 2010
Location: New York City
Posts: 399
Thanks: 5
Thanked 69 Times in 61 Posts
Default

Quote:
Originally Posted by hackish View Post
I wanted my hosting provider to install some more RAM and they pointed out that I need to run FreeBSD 64 bit or PAE. Fearing too many incompatibilities I opted to try PAE as I won't have to recompile a number of specialized servers (that were written years before people dreamed of 64 bit processors...)
FWIW, I have lots of software which was written years ago (some of it dates from the PDP-11) which compiles and runs fine on FreeBSD's amd64 platform. One of these has source files dating back to at least 1991, if not earlier (the former maintainer had a nasty habit of doing a touch * for each release). It has needed a few tweaks evey now and again, but it still builds and runs.

There are some packages that I only have in binary form and which were built for 32-bit FreeBSD (or Linux) which also run fine on amd64.

Your biggest issue will probably be testing to ensure that your application still runs properly in the new environment. You'd need to do at least some of that testing when moving to a new FreeBSD version anyway.

PAE was a partial interim workaround for systems with more than 4GB. amd64 support has been in FreeBSD for years, and it gets a lot more developer attention than PAE. There are many devices which simply don't work in PAE mode and it is unlikely that PAE support will ever be added to them at this late date.
Reply With Quote
  #5  
Old May 3rd, 2012, 07:51
throAU throAU is offline
Member
 
Join Date: Jan 2012
Location: Perth, Western Australia
Posts: 561
Thanks: 92
Thanked 78 Times in 72 Posts
Default

As above, given the choice between PAE and x64, you'll probably find that x64 is more compatible and certainly likely to be more stable.
__________________
I use: FreeBSD, Mac OS X, Windows, Netapp, Cisco UCS, Cisco CUCM, Cisco IOS, Cisco ASA, vSphere 5.1, Cisco ISE, Orion NPM
Reply With Quote
  #6  
Old May 3rd, 2012, 14:47
hackish hackish is offline
Junior Member
 
Join Date: Feb 2012
Posts: 24
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks for all the suggestions. I think I'm going to rehearse the in-place amd64 upgrade and then attempt it on the production server. The extra 4GB of RAM is being installed at the moment. Fortunately I have a system here with similar specs so I can practise the conversion. I wish there were an easier conversion procedure.

Last edited by DutchDaemon; May 3rd, 2012 at 23:55.
Reply With Quote
  #7  
Old June 5th, 2012, 11:04
ATAG ATAG is offline
Junior Member
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sys/i386/conf/NOTES:

Quote:
Code:
# Change the size of the kernel virtual address space.  Due to
# constraints in loader(8) on i386, this must be a multiple of 4.
# 256 = 1 GB of kernel address space.  Increasing this also causes
# a reduction of the address space in user processes.  512 splits
# the 4GB cpu address space in half (2GB user, 2GB kernel).  For PAE
# kernels, the value will need to be double non-PAE.  A value of 1024
# for PAE kernels is necessary to split the address space in half.
# This will likely need to be increased to handle memory sizes >4GB.
# PAE kernels default to a value of 512.
#
options         KVA_PAGES=260

Last edited by DutchDaemon; June 5th, 2012 at 13:38. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I put thiese option in GENERIC Kernel and compile it mfaridi Firewalls 5 October 9th, 2011 01:51
Generic kernel, adding/changing options mfaridi Installing & Upgrading 7 September 30th, 2010 00:01
GENERIC kernel & sources pippo Installing & Upgrading 2 May 3rd, 2010 21:41
GENERIC kernel Twister General 17 December 30th, 2009 15:03
default to accept on GENERIC kernel Ole Firewalls 6 July 3rd, 2009 10:47


All times are GMT +1. The time now is 17:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0