лимиты на ОЗУ

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

лимиты на ОЗУ

Anton Maksimenkov-2
Хай.

Я мож чот не так понимаю..., но почему даже root не может лимит памяти
поднять больше 1Г?

root@db2:/root
 # ulimit -a
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         1048576
stack(kbytes)        8192
lockedmem(kbytes)    672777
memory(kbytes)       2016764
nofiles(descriptors) 1024
processes            1024

root@db2:/root
 # ulimit -d 1572864

всё то же самое
root@db2:/root
 # ulimit -d
1048576
root@db2:/root
 # ulimit -d -H
1048576

А юзер под постгрес, которому я записал в /etc/login.conf
postgresql:\
        :openfiles-cur=768:\
        :datasize-max=1536M:\
        :datasize-cur=1536M:\
        :tc=daemon:

# userinfo  _postgresql|fgrep class
class   postgresql

тоже не может поднять лимит ни на килобайт сверх 1 Гига:
root@db2:/root
 # su - _postgresql
$ ulimit -a
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         1048576
stack(kbytes)        8192
lockedmem(kbytes)    672777
memory(kbytes)       2016764
nofiles(descriptors) 768
processes            1024

$ ulimit -d 1048577
sh: ulimit: exceeds allowable limit

p.s.

OpenBSD 4.5-stable (GENERIC.MP) #0: Sat May 16 16:27:49 YEKST 2009
..
real mem  = 2147028992 (2047MB)
avail mem = 2067795968 (1972MB)
--
engineer


Reply | Threaded
Open this post in threaded view
|

Re: лимиты на ОЗУ

Alexander Yurchenko-3
On Tue, May 19, 2009 at 01:09:07PM +0600, engineer wrote:
> Хай.
>
> Я мож чот не так понимаю..., но почему даже root не может лимит памяти
> поднять больше 1Г?
>

[grange@srv1 grange]$ grep MAXDSIZ /sys/arch/i386/include/vmparam.h
#ifndef MAXDSIZ
#define MAXDSIZ         (1024*1024*1024)        /* max data size */
[grange@srv1 grange]$ grep MAXDSIZ /sys/arch/amd64/include/vmparam.h
#ifndef MAXDSIZ
#define MAXDSIZ         ((paddr_t)8*1024*1024*1024)     /* max data size */

> OpenBSD 4.5-stable (GENERIC.MP) #0: Sat May 16 16:27:49 YEKST 2009
> ..
> real mem  = 2147028992 (2047MB)
> avail mem = 2067795968 (1972MB)

dmesg поскипан не очень умно, архитектура важна.

> --
> engineer
>

--
Alexander Yurchenko


Reply | Threaded
Open this post in threaded view
|

Re: лимиты на ОЗУ

Anton Maksimenkov-2
>> Я мож чот не так понимаю..., но почему даже root не может лимит памяти
>> поднять больше 1Г?
> [grange@srv1 grange]$ grep MAXDSIZ /sys/arch/i386/include/vmparam.h
> #ifndef MAXDSIZ
> #define MAXDSIZ         (1024*1024*1024)        /* max data size */
> [grange@srv1 grange]$ grep MAXDSIZ /sys/arch/amd64/include/vmparam.h
> #ifndef MAXDSIZ
> #define MAXDSIZ         ((paddr_t)8*1024*1024*1024)     /* max data size */

Мм... да, у меня пень3. То есть постгресу более 1Г не суждено..

> dmesg поскипан не очень умно, архитектура важна.
дико извиняюсь

OpenBSD 4.5-stable (GENERIC.MP) #0: Sat May 16 16:27:49 YEKST 2009
    root@...:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 1 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 2147028992 (2047MB)
avail mem = 2067795968 (1972MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/20/01, BIOS32 rev. 0 @ 0xfd2c1
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class)
cpu1: FPU,CX8,APIC
mpbios0: bus 0 is type PCI
mpbios0: bus 1 is type PCI
mpbios0: bus 2 is type PCI
mpbios0: bus 3 is type PCI
mpbios0: bus 4 is type PCI
mpbios0: bus 5 is type ISA
ioapic0 at mainbus0: apid 14 pa 0xfec00000, version 11, 16 pins
ioapic1 at mainbus0: apid 15 pa 0xfec01000, version 11, 16 pins
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xffff
pcibios0: PCI BIOS has 11 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks OSB4" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0xa000 0xca000/0x1800 0xcb800/0x1800 0xcd000/0x2600
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05
pci1 at pchb1 bus 1
ami0 at pci1 dev 5 function 0 "Symbios Logic MegaRAID" rev 0x01: apic
15 int 4 (irq 10)
ami0: LSI 520, 64b/lhc, FW 1L47, BIOS vG121, 128MB RAM
ami0: 1 channels, 0 FC loops, 2 logical drives
scsibus0 at ami0: 40 targets
sd0 at scsibus0 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
sd0: 17356MB, 512 bytes/sec, 35545088 sec total
sd1 at scsibus0 targ 1 lun 0: <AMI, Host drive #01, > SCSI2 0/direct fixed
sd1: 280026MB, 512 bytes/sec, 573493248 sec total
scsibus1 at ami0: 16 targets
safte0 at scsibus1 targ 15 lun 0: <IBM, CaHv3 S2, 0> SCSI2 3/processor fixed
vga1 at pci0 dev 1 function 0 "S3 Savage 4" rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcn0 at pci0 dev 2 function 0 "AMD 79c970 PCnet-PCI" rev 0x44,
Am79c975, rev 4: apic 15 int 11 (irq 11), address 00:02:55:91:f1:01
ukphy0 at pcn0 phy 30: Generic IEEE 802.3u media interface, rev. 0:
OUI 0x00001a, model 0x0036
fxp0 at pci0 dev 9 function 0 "Intel 8255x" rev 0x08, i82559: apic 15
int 0 (irq 15), address 00:03:47:6a:10:f7
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci0 dev 10 function 0 "Intel 8255x" rev 0x0c, i82550: apic 15
int 2 (irq 11), address 00:03:47:ac:05:27
inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
piixpm0 at pci0 dev 15 function 0 "ServerWorks OSB4" rev 0x4f: SMBus disabled
pciide0 at pci0 dev 15 function 1 "ServerWorks OSB4 IDE" rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus2 at atapiscsi0: 2 targets
cd0 at scsibus2 targ 0 lun 0: <SAMSUNG, CD-ROM SC-148C, CI09> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 "ServerWorks OSB4/CSB5 USB" rev 0x04:
apic 14 int 9 (irq 9), version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "ServerWorks OHCI root hub" rev 1.00/1.00 addr 1
isa0 at mainbus0
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
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
softraid0 at root
root on sd0a swap on sd0b dump on sd0b

--
engineer