|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
OpenBSD only regognizes 1.6 GB out of 8 GB RAM installed
Hi.
I recently upgraded from a Mac Mini G4 to a Asrock Beebox NUC. Main reason was that I need to use java, which is not available under powerpc. Anyway.... Everything works fine so far, except that OpenBSD only recognizes 1.6 GB of RAM. However, I have 2x 4GB RAM modules installed. During boot OpenBSD correctly detects both 4GB modules, but only 1.6 GB are usable. I first thought that the onboard graphics card steals some usable memory, but not to that amount... So. What's going on here? How can I get OpenBSD to use the full amount of RAM installed? Code:
$ dmesg|grep mem OpenBSD 5.8 (GENERIC.MP) #1098: Sun Aug 16 02:38:27 MDT 2015 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Celeron(R) CPU N3150 @ 1.60GHz ("GenuineIntel" 686-class) 1.61 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT real mem = 1797062656 (1713MB) avail mem = 1748631552 (1667MB) [...] spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-12800 SO-DIMM |
|
|||
Quote:
Code:
You can find that out with the following command: Code:
On my Alix (i386) I have the following lines in /etc/boot.conf Code:
machine diskinfo machine memory set timeout 10 Code:
M>> OpenBSD/i386 BOOT 3.27 Disk BIOS# Type Cyls Heads Secs Flags Checksum hd0 0x80 label 971 128 63 0x2 0xcc6c9536 Region 0: type 1 at 0x0 for 640KB Region 1: type 2 at 0xf0000 for 64KB Region 2: type 2 at 0xfff00000 for 1024KB Region 3: type 1 at 0x100000 for 261120KB Low ram: 640KB High ram: 261120KB Total free memory: 261760KB
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 17th December 2015 at 10:45 AM. |
|
|||
According to http://ark.intel.com/products/87258/...up-to-2_08-GHz that CPU is 64 bits, so installing OpenBSD for amd64 should solve the issue.
But it should be interesting to know whether you can make more memory available for i386 with those machine memory commands outlined in the boot.conf man page.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump Last edited by J65nko; 17th December 2015 at 11:25 AM. |
|
|||
I added the parameters in /etc/boot.conf.
See attached photo of the output. The (rather bad) UEFI BIOS has an option to set the amount of memory the graphics card can use. It correlates with the amount of RAM available under OpenBSD, e.g. graphics card = 512 MB, OpenBSD = 1.5 GB. However, 6 GB are always missing. Maybe I should try the amd64 image? That would mean reinstalling.... |
|
|||
Given:
Quote:
The presence of "LONG" in the processor feature set indicates the capability of running amd64. Is this a guarantee that all memory will be recognized? No, there may be oddities in the overall motherboard design which may be present which do not show in the limited information provided. Last edited by ocicat; 17th December 2015 at 04:31 PM. |
|
|||
Okay. Will try to install amd64-version of OpenBSD. Will take a while...
You can see the full dmesg-output (i386) here: http://daemonforums.org/showpost.php...8&postcount=83 |
|
|||
Before you install amd64. please post the output of
$ sysctl hw
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
i386:
Code:
# sysctl hw hw.machine=i386 hw.model=Intel(R) Celeron(R) CPU N3150 @ 1.60GHz ("GenuineIntel" 686-class) hw.ncpu=4 hw.byteorder=1234 hw.pagesize=4096 hw.disknames=sd0:,sd1:0ed8996a583a4968 hw.diskcount=2 hw.sensors.cpu0.temp0=58.00 degC hw.cpuspeed=480 hw.setperf=0 hw.vendor=ASRock hw.product=N3150-NUC hw.uuid=65d3719e-a784-3ec4-93a7-c17aa1cf5f96 hw.physmem=1797062656 hw.usermem=1796853760 hw.ncpufound=4 hw.allowpowerdown=1 hw.perfpolicy=manual |
|
||||
Quote:
https://marc.info/?l=openbsd-cvs&m=142886392102122&w=2 https://marc.info/?l=openbsd-cvs&m=142987998607845&w=2 Last edited by Oko; 18th December 2015 at 01:37 AM. |
|
|||
If you don't want to do an 64 bit reinstall yet, you could create an create an USB stick with an amd64 install58.fs and see how that boots.
When you don't have an USB stick, the alternative is to boot your current i386 system with an amd64 bsd.rd. For some more info on this see http://www.openbsd.org/faq/faq4.html#bsd.rd . Select S to get a shell when the installer asks you what you want to do: Code:
Welcome to the OpenBSD/amd46 5.8 installation program. (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? # dmesg | less you can use the space bar to scroll through the kernel boot messages.You can also use the command # sysctl (no "hw"parameter!) to get a limited subset of the # sysctl hw output.This is what I get when I boot my amd64 system with an i386 USB boot stick: Code:
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
Quote:
For the entire post including the recommendation. Honestly I am having very hard time to think of a single reason somebody would run amd64. Between have you seen this? http://marc.info/?l=openbsd-tech&w=2&r=1&s=WAPBL&q=b One more reason for the Joy this holiday season. |
|
|||
I migrated to OpenBSD-amd64. Now, all of the installed memory seems to be detected. However, changing the amount of memory that the graphics card can utilize does not seem to make a difference in OpenBSD... This seems a bit odd to me. In BIOS settings I decided to give it 512 MB.
Anyway, attached is an image of the memory boot-output. Here is the output of sysctl hw under amd64: Code:
# sysctl hw hw.machine=amd64 hw.model=Intel(R) Celeron(R) CPU N3150 @ 1.60GHz hw.ncpu=4 hw.byteorder=1234 hw.pagesize=4096 hw.diskcount=2 hw.sensors.cpu0.temp0=59.00 degC hw.cpuspeed=1601 hw.setperf=100 hw.vendor=ASRock hw.product=N3150-NUC hw.physmem=7954817024 hw.usermem=7954792448 hw.ncpufound=4 hw.allowpowerdown=1 hw.perfpolicy=high Code:
Could not allocate metaspace: 268435456 bytes ulimit -a for user root: Code:
# ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) 33554432 file size (blocks, -f) unlimited max locked memory (kbytes, -l) 2509364 max memory size (kbytes, -m) 7525516 open files (-n) 128 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 1310 virtual memory (kbytes, -v) 33562624 Code:
core file size (blocks, -c) unlimited data seg size (kbytes, -d) 524288 file size (blocks, -f) unlimited max locked memory (kbytes, -l) 2509364 max memory size (kbytes, -m) 7525516 open files (-n) 128 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 4096 cpu time (seconds, -t) unlimited max user processes (-u) 128 virtual memory (kbytes, -v) 524288 Code:
default:\ :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/l ocal/sbin:\ :umask=022:\ :datasize-max=6144M:\ :datasize-cur=6144M:\ :maxproc-max=1024:\ :maxproc-cur=512:\ :openfiles-cur=512:\ :stacksize-cur=8M:\ :memorylocked=4096M:\ :vmemoryuse=9192M:\ :localcipher=blowfish,8:\ :ypcipher=old:\ :tc=auth-defaults:\ :tc=auth-ftp-defaults: Code:
cap_mkdb /etc/login.conf Exploring PAE is interesting but may not give me any advantages when compared to amd64?? |
|
|||
Afaik, most ULV processors from Intel come with an integrated graphic card that do not has dedicated memory. The graphic card utilizes some of the computer's system memory. Typically in UEFI BIOS you can set the amount of memory assigned to the graphic card.
http://ark.intel.com/products/87258/...up-to-2_08-GHz http://www.asrock.com/Nettop/Intel/B...asp?cat=Manual |
|
||||
The default login class is intentionally resource restricted. The staff class is commonly used for workstation users -- those who need to run applications with larger resource requirements such as browsers -- or in your case, Java.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installed OpenBSD 5.7.Need update help | Itproman | OpenBSD Installation and Upgrading | 18 | 19th August 2015 02:57 PM |
Installed OpenBSD, and wiped out MBR | scottro | OpenBSD Installation and Upgrading | 31 | 13th December 2014 07:45 PM |
Installed OpenBSD for the first time ..... Some questions | bsd007 | OpenBSD General | 6 | 20th October 2014 02:55 AM |
Install NetBSD when DesktopBSD or OpenBSD is installed | ahlsner | NetBSD General | 4 | 6th August 2009 08:26 PM |
Installed 4.3 & No GUI | warriors | OpenBSD General | 24 | 14th August 2008 11:28 AM |