DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th May 2013
discorder discorder is offline
New User
 
Join Date: May 2013
Posts: 2
Default increasing qemu memory

I need to run qemu with 20G ram for development reasons

I added myself to staff users, edited login.conf for unlimited values, log out/log back in and still can't change /bin/ksh ulimit -d unlimited it's fixed on a max amount. Qemu will only start with max 512m ram. My system has 32G and nothing except base + qemu package installed. Tried changing ulimit -d in bsh was also getting the 'exceeds limits' error.

Anybody else have this problem? Do I have to make a malloc.conf memory entry or something
Reply With Quote
  #2   (View Single Post)  
Old 4th May 2013
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

You did try to set memory size with qemu -m xyz? Just making sure...
__________________
May the source be with you!
Reply With Quote
  #3   (View Single Post)  
Old 4th May 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Hello, and welcome, discorder. You don't mention what architecture or release you are using, nor what the per-process limit you are seeing actually is -- e.g., the output from $ ulimit -a.

You mention "bsh" and I assume that is a typo, as that is neither the bash shell nor any of the built-in shells.

The maximum virtual memory available is limited by the value of MAXDSIZ, found in src/sys/arch/<architecture>/include/vmparam.h along with other architecture-dependent values.

Since you're asking about multi-gigabytes of virtual memory per process, I'll assume you are interested in the amd64 architecture. MAXDSIZ for amd64 has been 8GB since OpenBSD 4.1:
Code:
#define MAXDSIZ         ((paddr_t)8*1024*1024*1024)     /* max data size */
The limit you are hitting may be architectural, but without more information, we may not be able to assist further.
Reply With Quote
  #4   (View Single Post)  
Old 4th May 2013
discorder discorder is offline
New User
 
Join Date: May 2013
Posts: 2
Default

I've installed obsd 5.3 amd64 (generic.mp) on a AMD II X4 965 processor
I can start qemu with up to 5G memory now then it throws unable to allocate memory error.
Code:
$ulimit -a
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 8388608
stack(kbytes) 4096
lockedmem(kbytes) 10878357
memory (kbytes) 32632104
nofiles(descriptors) 512
processes 1310

$ulimit
unlimited
I'm building android platform source so 16G+ memory would be preferred. If I can build android directly on obsd instead of using qemu after tinkering I'll let everybody know, that would be great success.

Last edited by discorder; 4th May 2013 at 09:43 PM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
  #5   (View Single Post)  
Old 6th May 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Code:
memory (kbytes) 32632104
32GB. 8 GB for each of the 4 cores of an AMD II X4 965.

As to your apparent 5GB limit, I would look to determine how much virtual memory is available between available RAM and swap, as the allocations must come from somewhere. Once you have confirmed that physical memory and swap space are not the reason for the limit, I recommend reaching out via Email. You should contact either Brad Smith, who is the port maintainer for emulators/qemu, or more generally ask the larger OpenBSD community on the ports@ OpenBSD mailing list.

Unfortunately, this forum is relatively small and no one else has chimed in with any assistance.

---

(When I was doing Android builds, I used an Asus notebook with a 32-bit only Atom CPU and 1GB of RAM. Are you sure you need so many GB of memory?)

Last edited by jggimi; 6th May 2013 at 12:56 PM.
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
qemu networking gpatrick OpenBSD Packages and Ports 2 18th December 2011 04:20 AM
OpenBSD QEMU-1.0-RC2 J65nko News 2 17th November 2011 03:07 PM
qemu sound Oko OpenBSD Packages and Ports 2 7th May 2009 06:59 AM
Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperp yurtesen FreeBSD General 14 18th May 2008 09:00 AM


All times are GMT. The time now is 04:30 AM.


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