|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Memory limit
Hi all,
I have installed NetBSD 5.1 amd64 on my laptop and it reboot every time. I had the same problem under FreeBSD and the solution was to set a knob hw.physmem=3G in the file /loader.conf. But, i have not find this entry under NetBSD. How can i limit the memory on my laptop ? Thanks a lot |
|
|||
In the source of the kernel, we have the possibility to limit the max size of physical memory.
Code:
options PHYSMEM_MAX_SIZE=3072 # max size of physical memory (in MB) Code:
# compile MYKERNEL/machdep.o cc -mcmodel=kernel -mno-red-zone -ffreestanding -fno-zero-initialized-in-bss -O2 -fno-omit-frame-pointer -std=gnu99 -fno-strict-aliasing -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Werror -Damd64 -Dx86_64 -I. -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/x86_64/string -I../../../../external/isc/atheros_hal/dist -I../../../../external/isc/atheros_hal/ic -I../../../../../common/include -I../../../../dist/ipf -c ../../../../arch/amd64/amd64/machdep.c cc1: warnings being treated as errors ../../../../arch/amd64/amd64/machdep.c: In function 'add_mem_cluster': ../../../../arch/amd64/amd64/machdep.c:1248: warning: implicit declaration of function 'MBTOB' Thanks |
|
|||
Warnings issued by the compiler are not errors. For example I also get warnings when I compile Bernstein's daemontools and djbdns on OpenBSD, but the compiler just continues and the programs run fine..
In your case the problem is cc1: warnings being treated as errors. For something this specify to the NetBSD kernel, you probably get more response at one of the NetBSD mailing lists. See http://netbsd.org/mailinglists/
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Load compile limit on CPU | Mr-Biscuit | Off-Topic | 3 | 29th April 2010 07:09 AM |
Bandwidth limit per IP | PatrickBaer | OpenBSD General | 13 | 22nd February 2010 07:38 PM |
Limit Bandwidth (not throughput) | plexter | OpenBSD Security | 5 | 9th October 2008 05:10 PM |
limit use memory by Apache | mfaridi | FreeBSD Security | 4 | 8th July 2008 05:59 PM |
Approaching the limit on PV entries | ccc | FreeBSD General | 6 | 14th June 2008 06:58 PM |