Hi,

when trying to create a mfs file system I can never get is larger than 1
GB even though I actually got >6 GB of free RAM.

Depening on how close I get to the 1 GB barrier I see the following
error messages. The last attempt was successfull, but that doesn't mean
that,l even though it was successfull now, it will be again... the limit
seems to be varying.

# mount_mfs -s 2097000 swap /mnt && umount /mnt
mount_mfs: mmap: Cannot allocate memory

# mount_mfs -s 2096900 swap /mnt && umount /mnt
mount_mfs: calloc failed

# mount_mfs -s 2096833 swap /mnt && umount /mnt
mount_mfs: cannot allocate I/O buffer

# mount_mfs -s 2096832 swap /mnt && umount /mnt

... wait some time ...

# mount_mfs -s 3096832 swap /mnt && umount /mnt
mount_mfs: mmap: Cannot allocate memory


The manpage of mfs says the following:

Note however that for mount_mfs the practical limit is based on datasize
in login.conf(5), and ultimately depends on the per-arch MAXDSIZ limit.

Well, the datasize is set ti infinity for root (daemon) so it must be
MAXDSIZ that is set in /usr/src/sys/arch/sparc64/include/vmparam.h and
describes as values in byte.

for 64 bit
#define MAXDSIZ         (512L*1024*1024*1024)   /* max data size */

for 32 bit
#define MAXDSIZ         (1*1024*1024*1024)      /* max data size */

What does that 512L for 64 bit mean? However, if I read that correctly,
I should be able to allocate way more than just ~1 GB of memory for each
MFS partition?

Is anyone here able to enlighten me? Is ~1 GB the limit or do I miss
something?

Thanks in advance,

Michael


OpenBSD 4.4-current (GENERIC.MP) #585: Fri Jan  9 11:36:04 MST 2009
    t...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 8589934592 (8192MB)
avail mem = 8367955968 (7980MB)
mainbus0 at root: Sun Fire V440
cpu0 at mainbus0: SUNW,UltraSPARC-IIIi (rev 2.4) @ 1062 MHz
cpu0: physical 32K instruction (32 b/l), 64K data (32 b/l), 1024K
external (64 b/l)
cpu1 at mainbus0: SUNW,UltraSPARC-IIIi (rev 2.4) @ 1062 MHz
cpu1: physical 32K instruction (32 b/l), 64K data (32 b/l), 1024K
external (64 b/l)
cpu2 at mainbus0: SUNW,UltraSPARC-IIIi (rev 2.4) @ 1062 MHz
cpu2: physical 32K instruction (32 b/l), 64K data (32 b/l), 1024K
external (64 b/l)
cpu3 at mainbus0: SUNW,UltraSPARC-IIIi (rev 2.4) @ 1062 MHz
cpu3: physical 32K instruction (32 b/l), 64K data (32 b/l), 1024K
external (64 b/l)
"memory-controller" at mainbus0 not configured
"memory-controller" at mainbus0 not configured
"memory-controller" at mainbus0 not configured
"memory-controller" at mainbus0 not configured
schizo0 at mainbus0: "Tomatillo", version 4, ign 700, bus A 0 to 0
schizo0: dvma map c0000000-dfffffff
pci0 at schizo0
cas0 at pci0 dev 2 function 0 "Sun Cassini" rev 0x20: ivec 0x718,
address 00:03:ba:66:75:d1
brgphy0 at cas0 phy 1: BCM5421 10/100/1000baseT PHY, rev. 1
"ppm" at mainbus0 not configured
schizo1 at mainbus0: "Tomatillo", version 4, ign 740, bus B 0 to 0
schizo1: dvma map c0000000-dfffffff
pci1 at schizo1
mpi0 at pci1 dev 2 function 0 "Symbios Logic 53c1030" rev 0x08: ivec 0x740
scsibus0 at mpi0: 16 targets, initiator 7
schizo2 at mainbus0: "Tomatillo", version 4, ign 780, bus A 0 to 0
schizo2: dvma map c0000000-dfffffff
pci2 at schizo2
ebus0 at pci2 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
"flashprom" at ebus0 addr 0-fffff, 290-290 not configured
rtc0 at ebus0 addr 70-71: m5819p
pcfiic0 at ebus0 addr 320-321 ivec 0x1b
iic0 at pcfiic0
"SUNW,i2c-imax" at iic0 addr 0xb not configured
"SUNW,i2c-imax" at iic0 addr 0xc not configured
admtemp0 at iic0 addr 0x18: max1617, cannot get control register
"pca9555" at iic0 addr 0x21 not configured
"pca9555" at iic0 addr 0x22 not configured
"pca9555" at iic0 addr 0x23 not configured
"pca9555" at iic0 addr 0x24 not configured
"adm1026" at iic0 addr 0x2e not configured
admtemp1 at iic0 addr 0x32: max1617, cannot get control register
admtemp2 at iic0 addr 0x40: max1617, cannot get control register
admtemp3 at iic0 addr 0x48: max1617, cannot get control register
lmtemp0 at iic0 addr 0x4e: lm75, fails to respond
"spd" at iic0 addr 0x5b not configured
"spd" at iic0 addr 0x5c not configured
"spd" at iic0 addr 0x5d not configured
"spd" at iic0 addr 0x5e not configured
"spd" at iic0 addr 0x63 not configured
"spd" at iic0 addr 0x64 not configured
"spd" at iic0 addr 0x65 not configured
"spd" at iic0 addr 0x66 not configured
"spd" at iic0 addr 0x6b not configured
"spd" at iic0 addr 0x6c not configured
"spd" at iic0 addr 0x6d not configured
"spd" at iic0 addr 0x6e not configured
"spd" at iic0 addr 0x73 not configured
"spd" at iic0 addr 0x74 not configured
"spd" at iic0 addr 0x75 not configured
"spd" at iic0 addr 0x76 not configured
"ics951601" at iic0 addr 0x69 not configured
power0 at ebus0 addr 800-82f ivec 0x1a
com0 at ebus0 addr 3f8-3ff ivec 0x22: ns16550a, 16 byte fifo
com1 at ebus0 addr 2e8-2ef ivec 0x22: ns16550a, 16 byte fifo
"rmc-comm" at ebus0 addr 3e8-3ef ivec 0x22 not configured
cas1 at pci2 dev 2 function 0 "NS Saturn" rev 0x30: ivec 0x78c, address
00:14:4f:1e:d6:b4
gentbi0 at cas1 phy 0: Generic ten-bit interface, rev. 0
vgafb0 at pci2 dev 4 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vgafb0: console (std, sun emulation)
alipm0 at pci2 dev 6 function 0 "Acer Labs M7101 Power" rev 0x00: 223KHz
clock
iic1 at alipm0
ohci0 at pci2 dev 10 function 0 "Acer Labs M5237 USB" rev 0x03: ivec
0x7a1, version 1.0, legacy support
ohci1 at pci2 dev 11 function 0 "Acer Labs M5237 USB" rev 0x03: ivec
0x7a5, version 1.0, legacy support
pciide0 at pci2 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc4:
DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7a6 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus1 targ 0 lun 0: <TOSHIBA, DVD-ROM SD-C2612, 1011> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Acer Labs OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "Acer Labs OHCI root hub" rev 1.00/1.00 addr 1
"ppm" at mainbus0 not configured
schizo3 at mainbus0: "Tomatillo", version 4, ign 7c0, bus B 0 to 0
schizo3: dvma map c0000000-dfffffff
pci3 at schizo3
cas2 at pci3 dev 1 function 0 "Sun Cassini" rev 0x20: ivec 0x7dc,
address 00:03:ba:66:75:d2
brgphy1 at cas2 phy 1: BCM5421 10/100/1000baseT PHY, rev. 1
mpi1 at pci3 dev 2 function 0 "Symbios Logic 53c1030" rev 0x07: ivec 0x7e3
scsibus2 at mpi1: 16 targets, initiator 7
sd0 at scsibus2 targ 0 lun 0: <LSILOGIC, 1030 IM IM, 1000> SCSI2
0/direct fixed
sd0: 34732MB, 512 bytes/sec, 71131136 sec total
sd1 at scsibus2 targ 2 lun 0: <ModusLnk, MXJ3073SC800600X, 5704> SCSI3
0/direct fixed
sd1: 70136MB, 512 bytes/sec, 143638992 sec total
sd2 at scsibus2 targ 3 lun 0: <ModusLnk, MXJ3073SC800600X, 5704> SCSI3
0/direct fixed
sd2: 70136MB, 512 bytes/sec, 143638992 sec total
mpi1: target 2 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
mpi1: target 3 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
mpi1: phys disk 1 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
mpi1: phys disk 0 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
mpi2 at pci3 dev 2 function 1 "Symbios Logic 53c1030" rev 0x07: ivec 0x7e4
scsibus3 at mpi2: 16 targets, initiator 7
"i2c" at mainbus0 not configured
uhidev0 at uhub0 port 1 configuration 1 interface 0 "Cherry
Mikroschalter My3000 keyboard" rev 1.00/9.08 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
softraid0 at root
softraid0: sd3 was not shutdown properly
scsibus4 at softraid0: 1 targets, initiator 1
sd3 at scsibus4 targ 0 lun 0: <OPENBSD, SR RAID 1, 003> SCSI2 0/direct fixed
sd3: 70136MB, 512 bytes/sec, 143638913 sec total
bootpath: /p...@1f,700000/s...@2,0/d...@0,0
root on sd0a swap on sd0b dump on sd0b
ukbd0: was console keyboard
wskbd0 detached
ukbd0 detached
uhidev0 detached
cas0: status=17381090<RXDONE,RX_COMP_FULL>

Reply via email to