DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th February 2011
jaax jaax is offline
Jaax
 
Join Date: Oct 2010
Posts: 4
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2   (View Single Post)  
Old 18th February 2011
jaax jaax is offline
Jaax
 
Join Date: Oct 2010
Posts: 4
Thanked 0 Times in 0 Posts
Default

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)
But, when i want to recompile the new kernel, i have this error :

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'
How can i do to remove this warning ?

Thanks
Reply With Quote
  #3   (View Single Post)  
Old 19th February 2011
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,135
Thanked 182 Times in 149 Posts
Default

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
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
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


All times are GMT. The time now is 07:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick