1f3ee [Solved] FreeBSD 7.1 32Bit only 3.49GB RAM - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > System Hardware

System Hardware Internal storage, motherboards, PCI cards, stuff inside the case.

Reply
 
Thread Tools Display Modes
  #1  
Old January 8th, 2010, 20:10
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default FreeBSD 7.1 32Bit only 3.49GB RAM

Hi
I got a root-server with 16GB ram. Fact is that it shows me only 3.49GB in Webmin. I've read in an other freebsd board, that on freebsd every process can adress 4gb of ram. Now I asked myself whether this is rigth or not.
Thanks for helping!
garrisson

PS:I have to use the 32bit version, because the program, that's running on it only works with 32bit.
Reply With Quote
  #2  
Old January 8th, 2010, 20:27
mk mk is offline
Member
 
Join Date: Nov 2008
Posts: 300
Thanks: 9
Thanked 16 Times in 17 Posts
Default

you need PAE
Reply With Quote
  #3  
Old January 8th, 2010, 20:29
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hmm, can u tell me a bit more exactly what this is? Sorry for my bad knowledge of freebsd, but I'm quite new on this system.
Reply With Quote
  #4  
Old January 8th, 2010, 20:31
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,700
Thanks: 0
Thanked 301 Times in 245 Posts
Default

Of course it's true the 32 bit versions of FreeBSD (and any other system) can only use 4GB since 2^32 = 4,294,967,296 bytes = 4GB.

And you need to enable pae(4) (Physical Address Extensions) like mk said. But every process is still limited to 4GB.
__________________
May the source be with you!
Reply With Quote
  #5  
Old January 8th, 2010, 20:32
michaelrmgreen's Avatar
michaelrmgreen michaelrmgreen is offline
Member
 
Join Date: Nov 2008
Location: The Peoples Republic of Couch
Posts: 193
Thanks: 35
Thanked 15 Times in 13 Posts
Default

start here : http://www.freebsd.org/cgi/man.cgi?query=pae&sektion=4
Reply With Quote
  #6  
Old January 8th, 2010, 20:45
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ok, thank you for your fast responses! I think I will have to take a deeper look into freebsd, so far as I see.
If you could give me some tipps with configuring an own freebsd kernel, I would be really pleasured
Reply With Quote
  #7  
Old January 8th, 2010, 21:43
FBSDin20Steps's Avatar
FBSDin20Steps FBSDin20Steps is offline
Member
 
Join Date: Mar 2009
Location: Barendrecht, The Netherlands
Posts: 283
Thanks: 7
Thanked 24 Times in 23 Posts
Default

Is there a special reason... that you use the 32-Bit version?
__________________
Greetz ;)
Reply With Quote
  #8  
Old January 8th, 2010, 22:26
michaelrmgreen's Avatar
michaelrmgreen michaelrmgreen is offline
Member
 
Join Date: Nov 2008
Location: The Peoples Republic of Couch
Posts: 193
Thanks: 35
Thanked 15 Times in 13 Posts
Default

Here's your starting point : http://www.freebsd.org/doc/en_US.ISO...ook/index.html

This is the section on compiling the kernel : http://www.freebsd.org/doc/en_US.ISO...-building.html

Here's a useful thread over on Daemonforums : http://www.daemonforums.org/showthread.php?t=3042

Last edited by michaelrmgreen; January 8th, 2010 at 22:38. Reason: another link added
Reply With Quote
  #9  
Old January 8th, 2010, 22:32
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,817
Thanks: 30
Thanked 1,883 Times in 1,329 Posts
Default

Can't you run it on 64-bit with 32-bit support compiled in the kernel?

Code:
options         COMPAT_IA32             # Compatible with i386 binaries
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #10  
Old January 8th, 2010, 22:34
FBSDin20Steps's Avatar
FBSDin20Steps FBSDin20Steps is offline
Member
 
Join Date: Mar 2009
Location: Barendrecht, The Netherlands
Posts: 283
Thanks: 7
Thanked 24 Times in 23 Posts
Default

Quote:
Originally Posted by michaelrmgreen View Post
Here's your starting point : http://www.freebsd.org/doc/en_US.ISO...ook/index.html

This is the section on compiling the kernel : http://www.freebsd.org/doc/en_US.ISO...-building.html
Hey man, let me step aside before you throw the handbook at him.
__________________
Greetz ;)
Reply With Quote
  #11  
Old January 8th, 2010, 23:29
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

xD. I have to use the 32bit version, because the programm i want to use is only running on 32bit.

Quote:
Can't you run it on 64-bit with 32-bit support compiled in the kernel?
From this I never heard, so I don't know wheter this would work or not..
greetz
Reply With Quote
  #12  
Old January 9th, 2010, 04:23
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

Try using amd64 and run the program with 32-bit support. PAE doesn't seem to be very stable.
Reply With Quote
  #13  
Old January 9th, 2010, 08:00
gordon@ gordon@ is offline
FreeBSD Developer
 
Join Date: Feb 2008
Location: San Diego, CA
Posts: 398
Thanks: 0
Thanked 80 Times in 70 Posts
Default

You can run 32-bit binaries on 64-bit systems just fine. If you want to use 16GB of RAM, you are far better of using the amd64 install than PAE.
Reply With Quote
  #14  
Old January 9th, 2010, 08:14
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 701 Times in 579 Posts
Default

64-bit AMD and Intel CPUs can run in 3 different modes:
  1. native 64-bit mode, where the CPU runs in 64-bit mode, running a 64-bit OS, using only 64-bit applications
  2. compatible 64-bit mode, where the installed OS is 64-bit, and can run 64-bit applications, but can also run 32-bit applications (so long as the OS is configured to allow 32-bit applications to run)
  3. native 32-bit mode, where the CPU runs in 32-bit mode, running a 32-bit OS, using only 32-bit applications
This is the beauty and genius of AMD's 64-bit extensions to Intel's i386 CPU architecture. AMD CPUs support hybrid/compatible mode better than Intel CPUs, but both can work like this.

64-bit FreeBSD includes support for running 32-bit applications in the default install.

However, each 32-bit program is still limited to only 4 GB of memory. But, you can run multiple 32-bit applications at once, each with their own 4 GB of memory space.

The only way to really use the 16 GB of RAM to its fullest is to install the 64-bit version of FreeBSD. The other option is to remove 12 GB of RAM (leaving just 4 GB) and to use the 32-bit version of FreeBSD.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #15  
Old January 9th, 2010, 11:02
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hmm, I will try amd64.
Reply With Quote
  #16  
Old January 9th, 2010, 11:22
FBSDin20Steps's Avatar
FBSDin20Steps FBSDin20Steps is offline
Member
 
Join Date: Mar 2009
Location: Barendrecht, The Netherlands
Posts: 283
Thanks: 7
Thanked 24 Times in 23 Posts
Default

Thanks
__________________
Greetz ;)
Reply With Quote
  #17  
Old January 13th, 2010, 12:43
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

So, I tried severl times the amd64, with freebsd8.0 and 7.1. The program, I want to ron on, just doesn't work..
So I think I'm going to try the PAE method. My problem is just, that I'm not sure how to complie my own kernel, I think there can my faults be done..
So, if you can help me with this, I would be very thankful
Reply With Quote
  #18  
Old January 13th, 2010, 13:09
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,700
Thanks: 0
Thanked 301 Times in 245 Posts
Default

Quote:
Originally Posted by garrisson View Post
So, if you can help me with this
The handbook can. Read the entire chapter. And more specifically, check 8.6.1.
__________________
May the source be with you!
Reply With Quote
  #19  
Old January 13th, 2010, 22:06
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hmm, ok then I will take a deeper look to it.., and then ask questions
Reply With Quote
  #20  
Old January 15th, 2010, 07:53
gordon@ gordon@ is offline
FreeBSD Developer
 
Join Date: Feb 2008
Location: San Diego, CA
Posts: 398
Thanks: 0
Thanked 80 Times in 70 Posts
Default

What program are you using that isn't working? What does it do when you try to run it?
Reply With Quote
  #21  
Old January 24th, 2010, 11:54
garrisson garrisson is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I tried now several times to build a custom kernel with PAE support, but it doesn't work. After reboot, the server doesn't awake and has to be started by the hoster. I don't know, what I'm missing, or where the fault is, because when I compile the kernel, it doesn't give me an error out.
Can give you me an Example Configuration of an PAE Kernel?
This are the specs of the server:
  • Intel(R) Xeon(R) CPU E5405 @ 2.00GHz
  • Supermicro X7DCA-L
  • 16GB RAM
  • WDC WD7501AALS-00E3A0/05.01D05 -->2 times
  • -18ca:0021 XGI Technology Inc. (eXtreme Graphics Innovation) Unknown device: 0021
    -8086:2935 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2
    -8086:2920 Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller
    -8086:2930 Intel Corporation 82801I (ICH9 Family) SMBus Controller
    -8086:2948 Intel Corporation 82801I (ICH9 Family) PCI Express Port 5
    -8086:2926 Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller
    -8086:293a Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1

I hope, this list can help you
greetz

Edit:
@ gordon:
It's an online multiplayer game. I would run on 64bit, but only with the right libs, but I don't have those libs.. I put a list of the libs, I need to have as attachmet to this post.
Attached Files
File Type: txt lib.txt (442 Bytes, 39 views)

Last edited by garrisson; January 24th, 2010 at 18:00.
Reply With Quote
  #22  
Old January 27th, 2010, 07:11
gordon@ gordon@ is offline
FreeBSD Developer
 
Join Date: Feb 2008
Location: San Diego, CA
Posts: 398
Thanks: 0
Thanked 80 Times in 70 Posts
Default

Try installing amd64, then install the misc/compat5x port. The list of libraries you have are from that port and it needs to be installed or your program won't run.

Alternatively, you could give us more information about what is not working (error messages, pertinent output when you try to run the program on an amd64 host, etc). Without you being more forthcoming with the information, we can't be helpful in a solution.
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
how to make freebsd run in RAM completely? maitrikarunar Installing & Upgrading 7 April 20th, 2010 01:19
FreeBSD to RAM: is it possible? sossego General 6 September 26th, 2009 11:06
How to insert the ram disk image to a FreeBSD kernel? wsw1wsw2 General 7 July 17th, 2009 10:08
6 gigs of ram on a 32 bit freebsd install Fozzy System Hardware 3 April 10th, 2009 18:59
8GB ram installed, but only using 3.5GB (FreeBSD 7.1 AMD64) matthew Installing & Upgrading 3 February 22nd, 2009 19:39


All times are GMT +1. The time now is 15:09.


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