[Cannot allocate memory][Qemu][x86 & i386] limits ? login.conf ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Cannot allocate memory][Qemu][x86 & i386] limits ? login.conf ?

Francois Pussault-2
Hi all.

I experiment qemu problems while playing with emulators/virtual machines ...

When I try to create any virtual machines with x86_64 or i 386 hardware and
more than 256Mo ram that fail.
Qemu returns "Cannot allocate memory".

I tryied to modify login.conf & ulimits values, but this still fail.

I randomly ... YES RANDOMLY .... discover ram values are limited to exact
values between : 256 & 512Mo ram allocable ...no more ... no less... on a test
setup with the laptop.
How I discoverd that ?
like this :
 $ M=2048
 $ while : ; do qeum-system-i386 -m $M ; M=$(( $M - 1 )) ; echo $M ; done ;
unset M
So I let this run until VM starts, then I look the last $M value.

Qemu documentation says ram limit is 2047Mo for both i386 & x86_64

Anyway.... Qemu with ram values between 512 & 846 are just working very fine
...

Can check my actual setup in attached file. On this machine Qemu machines ram
is limited to 256Mo (with no modifications of ulimits neither in login.conf

I don't understand where is the problem. This doesn't seem to cause any hangs,
bugs or warning in "system" log files...

Any help or Ideas about that ?


FYI : any other hardware emulated seems to work with its own maximum supported
ram
for example :
$ qemu-system-sparc  -machine SS-20 -smp 4 -m 768
 just works fine on same machine...



Max values I have tried in login.conf were :



default:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin
/usr/local/sbin:\
        :umask=022:\
        :datasize-max=2048M:\
        :datasize-cur=2024M:\
        :maxproc-max=512:\
        :maxproc-cur=256:\
        :vmemoryuse=1024:\
        :openfiles-cur=1024:\
        :stacksize-cur=8M:\
        :localcipher=blowfish,6:\
        :ypcipher=old:\
        :tc=auth-defaults:\
        :tc=auth-ftp-defaults:








Cordialement
Francois Pussault
10 chemin de négo saoumos
apt 202 - bat 2
31300 Toulouse
+33 6 17 230 820   +33 5 34 365 269
[hidden email]
OpenBSD 5.5 (GENERIC.MP) #315: Wed Mar  5 09:37:46 MST 2014
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17161342976 (16366MB)
avail mem = 16695902208 (15922MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xee000 (71 entries)
bios0: vendor HP version "P56" date 11/13/2007
bios0: HP ProLiant DL380 G5
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP SPCR MCFG HPET SPMI ERST APIC FFFF BERT HEST
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2333.67 MHz
cpu0: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 333MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.0, IBE
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2332.51 MHz
cpu1: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 0, package 1
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2332.51 MHz
cpu2: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu2: 4MB 64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2332.51 MHz
cpu3: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu3: 4MB 64b/line 16-way L2 cache
cpu3: smt 0, core 2, package 1
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2332.51 MHz
cpu4: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu4: 4MB 64b/line 16-way L2 cache
cpu4: smt 0, core 1, package 0
cpu5 at mainbus0: apid 5 (application processor)
cpu5: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2332.51 MHz
cpu5: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu5: 4MB 64b/line 16-way L2 cache
cpu5: smt 0, core 1, package 1
cpu6 at mainbus0: apid 3 (application processor)
cpu6: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2332.51 MHz
cpu6: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu6: 4MB 64b/line 16-way L2 cache
cpu6: smt 0, core 3, package 0
cpu7 at mainbus0: apid 7 (application processor)
cpu7: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2332.51 MHz
cpu7: FPU,VME,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,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,LONG,LAHF,PERF
cpu7: 4MB 64b/line 16-way L2 cache
cpu7: smt 0, core 3, package 1
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
acpimadt0: unknown apic structure type ff
acpiprt0 at acpi0: bus 1 (IP2P)
acpiprt1 at acpi0: bus 2 (IPTA)
acpiprt2 at acpi0: bus 4 (IPTB)
acpiprt3 at acpi0: bus 11 (IPE1)
acpiprt4 at acpi0: bus 14 (IPE2)
acpiprt5 at acpi0: bus 17 (IPE3)
acpiprt6 at acpi0: bus 10 (IPE4)
acpiprt7 at acpi0: bus 9 (PT02)
acpiprt8 at acpi0: bus 6 (PT03)
acpiprt9 at acpi0: bus 19 (PT04)
acpiprt10 at acpi0: bus 23 (PT06)
acpiprt11 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpicpu2 at acpi0
acpicpu3 at acpi0
acpicpu4 at acpi0
acpicpu5 at acpi0
acpicpu6 at acpi0
acpicpu7 at acpi0
acpitz0 at acpi0: critical temperature is 31 degC
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 5000P Host" rev 0xb1
ppb0 at pci0 dev 2 function 0 "Intel 5000 PCIE" rev 0xb1
pci1 at ppb0 bus 9
ppb1 at pci1 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci2 at ppb1 bus 10
ppb2 at pci2 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci3 at ppb2 bus 11
ppb3 at pci2 dev 1 function 0 "Intel 6321ESB PCIE" rev 0x01
pci4 at ppb3 bus 14
ppb4 at pci2 dev 2 function 0 "Intel 6321ESB PCIE" rev 0x01
pci5 at ppb4 bus 17
ppb5 at pci1 dev 0 function 3 "Intel 6321ESB PCIE-PCIX" rev 0x01
pci6 at ppb5 bus 18
ppb6 at pci0 dev 3 function 0 "Intel 5000 PCIE" rev 0xb1
pci7 at ppb6 bus 6
ciss0 at pci7 dev 0 function 0 "Hewlett-Packard Smart Array" rev 0x03: apic 8 int 18
ciss0: 2 LDs, HW rev 3, FW 4.12/4.12, 64bit fifo
scsibus0 at ciss0: 2 targets
sd0 at scsibus0 targ 0 lun 0: <HP, LOGICAL VOLUME, 4.12> SCSI3 0/direct fixed
sd0: 69973MB, 512 bytes/sector, 143305920 sectors
sd1 at scsibus0 targ 1 lun 0: <HP, LOGICAL VOLUME, 4.12> SCSI3 0/direct fixed
sd1: 279900MB, 512 bytes/sector, 573235602 sectors
ppb7 at pci0 dev 4 function 0 "Intel 5000 PCIE x8" rev 0xb1
pci8 at ppb7 bus 19
ppb8 at pci0 dev 5 function 0 "Intel 5000 PCIE" rev 0xb1
pci9 at ppb8 bus 22
ppb9 at pci0 dev 6 function 0 "Intel 5000 PCIE x8" rev 0xb1
pci10 at ppb9 bus 23
ppb10 at pci0 dev 7 function 0 "Intel 5000 PCIE" rev 0xb1
pci11 at ppb10 bus 26
pchb1 at pci0 dev 16 function 0 "Intel 5000 Error Reporting" rev 0xb1
pchb2 at pci0 dev 16 function 1 "Intel 5000 Error Reporting" rev 0xb1
pchb3 at pci0 dev 16 function 2 "Intel 5000 Error Reporting" rev 0xb1
pchb4 at pci0 dev 17 function 0 "Intel 5000 Reserved" rev 0xb1
pchb5 at pci0 dev 19 function 0 "Intel 5000 Reserved" rev 0xb1
pchb6 at pci0 dev 21 function 0 "Intel 5000 FBD" rev 0xb1
pchb7 at pci0 dev 22 function 0 "Intel 5000 FBD" rev 0xb1
ppb11 at pci0 dev 28 function 0 "Intel 6321ESB PCIE" rev 0x09
pci12 at ppb11 bus 2
ppb12 at pci12 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci13 at ppb12 bus 3
bnx0 at pci13 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 8 int 16
ppb13 at pci0 dev 28 function 1 "Intel 6321ESB PCIE" rev 0x09
pci14 at ppb13 bus 4
ppb14 at pci14 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci15 at ppb14 bus 5
bnx1 at pci15 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 8 int 17
uhci0 at pci0 dev 29 function 0 "Intel 6321ESB USB" rev 0x09: apic 8 int 16
uhci1 at pci0 dev 29 function 1 "Intel 6321ESB USB" rev 0x09: apic 8 int 17
uhci2 at pci0 dev 29 function 2 "Intel 6321ESB USB" rev 0x09: apic 8 int 18
uhci3 at pci0 dev 29 function 3 "Intel 6321ESB USB" rev 0x09: apic 8 int 19
ehci0 at pci0 dev 29 function 7 "Intel 6321ESB USB" rev 0x09: apic 8 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb15 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd9
pci16 at ppb15 bus 1
radeondrm0 at pci16 dev 3 function 0 "ATI ES1000" rev 0x02
drm0 at radeondrm0
radeondrm0: apic 8 int 23
"Compaq iLO" rev 0x03 at pci16 dev 4 function 0 not configured
"Compaq iLO" rev 0x03 at pci16 dev 4 function 2 not configured
uhci4 at pci16 dev 4 function 4 "Hewlett-Packard USB" rev 0x00: apic 8 int 22
"Hewlett-Packard IPMI" rev 0x00 at pci16 dev 4 function 6 not configured
usb1 at uhci4: USB revision 1.0
uhub1 at usb1 "Hewlett-Packard UHCI root hub" rev 1.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel 6321ESB LPC" rev 0x09
pciide0 at pci0 dev 31 function 1 "Intel 6321ESB IDE" rev 0x09: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, RW/DVD GCC-C10N, 2.00> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: probed fifo depth: 0 bytes
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
uhidev0 at uhub1 port 1 configuration 1 interface 0 "HP Virtual Keyboard" rev 1.10/0.02 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes, country code 33
wskbd1 at ukbd0 mux 1
uhidev1 at uhub1 port 1 configuration 1 interface 1 "HP Virtual Keyboard" rev 1.10/0.02 addr 2
uhidev1: iclass 3/1
ums0 at uhidev1: 3 buttons
wsmouse0 at ums0 mux 0
uhub6 at uhub1 port 2 "HP Virtual Hub" rev 1.10/0.01 addr 3
uaudio0 at uhub4 port 2 configuration 1 interface 0 "C-Media Electronics Inc. USB PnP Sound Device" rev 1.10/1.00 addr 2
uaudio0: audio rev 1.00, 8 mixer controls
audio0 at uaudio0
uhidev2 at uhub4 port 2 configuration 1 interface 3 "C-Media Electronics Inc. USB PnP Sound Device" rev 1.10/1.00 addr 2
uhidev2: iclass 3/0
uhid0 at uhidev2: input=4, output=4, feature=0
uhidev3 at uhub5 port 1 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/63.00 addr 2
uhidev3: iclass 3/1
ums1 at uhidev3: 3 buttons, Z dir
wsmouse1 at ums1 mux 0
uhidev4 at uhub5 port 2 configuration 1 interface 0 "Dell Dell USB Keyboard" rev 1.10/3.06 addr 3
uhidev4: iclass 3/1
ukbd1 at uhidev4: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (4ca58795d353d8f6.a) swap on sd0b dump on sd0b
bnx0: address 00:1e:0b:71:3a:58
brgphy0 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
bnx1: address 00:1e:0b:71:3a:56
brgphy1 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
drm: initializing kernel modesetting (RV100 0x1002:0x515E 0x103C:0x31FB).
radeondrm0: VRAM: 128M 0x00000000D8000000 - 0x00000000DFFFFFFF (32M used)
radeondrm0: GTT: 512M 0x00000000B8000000 - 0x00000000D7FFFFFF
drm: PCI GART of 512M enabled (table at 0x0000000002071000).
drm: No TV DAC info found in BIOS
radeondrm0: 1024x768
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
hw.machine=amd64
hw.model=Intel(R) Xeon(R) CPU E5345 @ 2.33GHz
hw.ncpu=8
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:4ca58795d353d8f6,sd1:5dece4c226bd5f4a,cd0:
hw.diskcount=3
hw.sensors.cpu0.temp0=42.00 degC
hw.sensors.cpu1.temp0=42.00 degC
hw.sensors.cpu2.temp0=42.00 degC
hw.sensors.cpu3.temp0=42.00 degC
hw.sensors.cpu4.temp0=42.00 degC
hw.sensors.cpu5.temp0=42.00 degC
hw.sensors.cpu6.temp0=42.00 degC
hw.sensors.cpu7.temp0=42.00 degC
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.cpuspeed=2333
hw.setperf=100
hw.vendor=HP
hw.product=ProLiant DL380 G5
hw.serialno=CZC8032H69
hw.uuid=34333335-3234-435a-4338-303332483639
hw.physmem=17161342976
hw.usermem=17161302016
hw.ncpufound=8
hw.allowpowerdown=1
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a      984M   60.9M    874M     7%    /
/dev/sd0d      5.8G   22.0K    5.5G     0%    /tmp
/dev/sd0f     29.5G    8.9G   19.1G    32%    /usr
/dev/sd0e     15.7G   22.0M   14.9G     0%    /var
/dev/sd1a      271G   34.7G    223G    13%    /home
# $OpenBSD: login.conf.in,v 1.6 2012/02/06 21:25:13 sobrado Exp $

#
# Sample login.conf file.  See login.conf(5) for details.
#

#
# Standard authentication styles:
#
# krb5-or-pwd First try Kerberos V password, then local password file
# passwd Use only the local password file
# krb5 Use only the Kerberos V password
# chpass Do not authenticate, but change users password (change
# the YP password if the user has one, else change the
# local password)
# lchpass Do not login; change user's local password instead
# radius Use radius authentication
# reject Use rejected authentication
# skey Use S/Key authentication
# activ ActivCard X9.9 token authentication
# crypto CRYPTOCard X9.9 token authentication
# snk Digital Pathways SecureNet Key authentication
# tis TIS Firewall Toolkit authentication
# token Generic X9.9 token authentication
# yubikey YubiKey authentication
#

# Default allowed authentication styles
auth-defaults:auth=passwd,skey:

# Default allowed authentication styles for authentication type ftp
auth-ftp-defaults:auth-ftp=passwd:

#
# The default values
# To alter the default authentication types change the line:
# :tc=auth-defaults:\
# to be read something like: (enables passwd, "myauth", and activ)
# :auth=passwd,myauth,activ:\
# Any value changed in the daemon class should be reset in default
# class.
#
default:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\
        :umask=022:\
        :datasize-max=512M:\
        :datasize-cur=512M:\
        :maxproc-max=256:\
        :maxproc-cur=128:\
        :openfiles-cur=512:\
        :stacksize-cur=4M:\
        :localcipher=blowfish,6:\
        :ypcipher=old:\
        :tc=auth-defaults:\
        :tc=auth-ftp-defaults:

#
# Settings used by /etc/rc and root
# This must be set properly for daemons started as root by inetd as well.
# Be sure reset these values back to system defaults in the default class!
#
daemon:\
        :ignorenologin:\
        :datasize=infinity:\
        :maxproc=infinity:\
        :openfiles-cur=128:\
        :stacksize-cur=8M:\
        :localcipher=blowfish,8:\
        :tc=default:

#
# Staff have fewer restrictions and can login even when nologins are set.
#
staff:\
        :datasize-cur=512M:\
        :datasize-max=infinity:\
        :maxproc-max=512:\
        :maxproc-cur=128:\
        :ignorenologin:\
        :requirehome@:\
        :tc=default:

#
# Authpf accounts get a special motd and shell
#
authpf:\
        :welcome=/etc/motd.authpf:\
        :shell=/usr/sbin/authpf:\
        :tc=default:

#
# Override resource limits for certain daemons started by rc.d(8)
#
bgpd:\
        :openfiles-cur=512:\
        :tc=daemon:

Reply | Threaded
Open this post in threaded view
|

Re: [Cannot allocate memory][Qemu][x86 & i386] limits ? login.conf ?

413x
On 16.07.2014 10:48, Francois Pussault wrote:
> Hi all.
Hi François,

> I experiment qemu problems while playing with emulators/virtual machines ...
>
> When I try to create any virtual machines with x86_64 or i 386 hardware and
> more than 256Mo ram that fail.
> Qemu returns "Cannot allocate memory".
I had the same issue on -current couple weeks ago.

> default:\
>         :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin
> /usr/local/sbin:\
>         :umask=022:\
>         :datasize-max=2048M:\
>         :datasize-cur=2024M:\
>         :maxproc-max=512:\
>         :maxproc-cur=256:\
>         :vmemoryuse=1024:\
>         :openfiles-cur=1024:\
>         :stacksize-cur=8M:\
>         :localcipher=blowfish,6:\
>         :ypcipher=old:\
>         :tc=auth-defaults:\
>         :tc=auth-ftp-defaults:
>
I added in my user class:
        :datasize=infinity:\

No more problem for me, I can start VM with +256M RAM.

Be sure that the user which launches qemu has your class (vipw(8)).

Regards,

--
Alexis de BRUYN

Reply | Threaded
Open this post in threaded view
|

Re: [Cannot allocate memory][Qemu][x86 & i386] limits ? login.conf ?

Francois Pussault-2
Hello, Thanks,

This didn't correct the problem.
I'm still limited....Of course the host has been rebooted few days ago.
this doesn't fix this case.

I set :datasize=infinity:\ in a specific qemu class, and added the user.

I tried to play datasize-cur or max or both but....

:(



> ----------------------------------------
> From: Alexis de BRUYN <[hidden email]>
> Sent: Thu Jul 17 14:56:11 CEST 2014
> To: <[hidden email]>
> Subject: Re: [Cannot allocate memory][Qemu][x86 & i386] limits ? login.conf ?
>
>
> On 16.07.2014 10:48, Francois Pussault wrote:
> > Hi all.
> Hi François,
>
> > I experiment qemu problems while playing with emulators/virtual machines ...
> >
> > When I try to create any virtual machines with x86_64 or i 386 hardware and
> > more than 256Mo ram that fail.
> > Qemu returns "Cannot allocate memory".
> I had the same issue on -current couple weeks ago.
>
> > default:\
> >         :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin
> > /usr/local/sbin:\
> >         :umask=022:\
> >         :datasize-max=2048M:\
> >         :datasize-cur=2024M:\
> >         :maxproc-max=512:\
> >         :maxproc-cur=256:\
> >         :vmemoryuse=1024:\
> >         :openfiles-cur=1024:\
> >         :stacksize-cur=8M:\
> >         :localcipher=blowfish,6:\
> >         :ypcipher=old:\
> >         :tc=auth-defaults:\
> >         :tc=auth-ftp-defaults:
> >
> I added in my user class:
>         :datasize=infinity:\
>
> No more problem for me, I can start VM with +256M RAM.
>
> Be sure that the user which launches qemu has your class (vipw(8)).
>
> Regards,
>
> --
> Alexis de BRUYN
>


Cordialement
Francois Pussault
10 chemin de négo saoumos
apt 202 - bat 2
31300 Toulouse
+33 6 17 230 820   +33 5 34 365 269
[hidden email]

Reply | Threaded
Open this post in threaded view
|

[Cannot allocate memory][Qemu][x86 & i386] limits ? login.conf ?

Jan Lambertz
In reply to this post by 413x
Hi, had same Problem.the only (poor) workaround i found is running qemu as
root .