[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cachepct limit !
don't do that. there are limits for a reason. kernels don't work well
when they don't have address space to work in.
On Mon, 16 Feb 2004, [ISO-8859-1] Pailloncy Jean-Gérard wrote:
> Hi,
>
> I try to raise the cachepct with config so postgresql will be happy.
>
> But I got a limit of 26% of my 1Gb of RAM.
>
> The figures:
> cachepct = 5
> using 4278 buffers containing 53768192 bytes (52508K) of memory
> cachepct = 10
> using 4278 buffers containing 107540480 bytes (105020K) of memory
> cachepct = 20
> using 4278 buffers containing 215085056 bytes (210044K) of memory
> cachepct = 26
> using 4278 buffers containing 279609344 bytes (273056K) of memory
> cachepct = 50
> using 4278 buffers containing 280363008 bytes (273792K) of memory
> cachepct = 60
> using 4278 buffers containing 280363008 bytes (273792K) of memory
> cachepct = 75
> using 4278 buffers containing 280363008 bytes (273792K) of memory
>
> The memory allocated by the kernel at boot time:
> - grows lineraly with cachepct under 26%
> - stay at 280363008 over 26%
>
> I use a OpenBSD 3.3 box with wdt driver activated (GEN6):
>
> dmesg:
> OpenBSD 3.3 (GEN6) #1: Fri Feb 6 10:26:04 CET 2004
> xxxxx@xxxxxxxx:/usr/src/sys/arch/i386/compile/GEN6
> cpu0: Intel Pentium 4 ("GenuineIntel" 686-class) 2.40 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,
> MM
> X,FXSR,SIMD,3DNOW
> real mem = 1073328128 (1048172K)
> avail mem = 775348224 (757176K)
> using 4278 buffers containing 268853248 bytes (262552K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(00) BIOS, date 01/10/03, BIOS32 rev. 0 @
> 0xfdb80
> apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
> pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf4fb0/272 (15 entries)
> pcibios0: no compatible PCI ICU found: ICU vendor 0xffff product 0xffff
> pcibios0: PCI bus #0 is the last bus
> bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1000 0xc9800/0x1800
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "ServerWorks CMIC_SL Host" rev 0x32
> pchb1 at pci0 dev 0 function 1 "ServerWorks CMIC_SL Host" rev 0x00
> pci1 at pchb1 bus 1
> wdt0 at pci0 dev 5 function 0 "Industrial Computer Source WDT 50x
> Watchdog Timer
> " rev 0x02
> wdt0: WDT501 timeout 30 secs, temp 24 F
> vga1 at pci0 dev 7 function 0 "ATI Rage XL" rev 0x27
> wsdisplay0 at vga1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> fxp0 at pci0 dev 8 function 0 "Intel 82557" rev 0x10: irq 9, address
> 00:e0:81:24
> :f0:96
> inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
> pcib0 at pci0 dev 15 function 0 "ServerWorks CSB5 SouthBridge" rev 0x93
> pciide0 at pci0 dev 15 function 1 "ServerWorks CSB5 IDE" rev 0x93: DMA
> atapiscsi0 at pciide0 channel 1 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <MITSUMI, CD-ROM SR244W, T01A> SCSI0
> 5/cdrom remov
> able
> cd0(pciide0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
> ohci0 at pci0 dev 15 function 2 "ServerWorks OSB4/CSB5 USB" rev 0x05:
> irq 10, OH
> CI version 1.0, legacy support
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0
> uhub0: vendor 0x0000 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 4 ports with 4 removable, self powered
> pchb2 at pci0 dev 15 function 3 "ServerWorks CSB5 PCI Bridge" rev 0x00
> pchb3 at pci0 dev 16 function 0 "ServerWorks CIOBX2" rev 0x03
> pchb4 at pci0 dev 16 function 2 "ServerWorks CIOBX2" rev 0x03
> pci2 at pchb4 bus 2
> twe0 at pci2 dev 3 function 0 "3ware Escalade IDE RAID" rev 0x01: irq 10
> twe0: Escalade V1.3
> scsibus1 at twe0: 16 targets
> sd0 at scsibus1 targ 0 lun 0: <3WARE, Host drive #00, > SCSI2 0/direct
> fixed
> sd0: 239371MB, 30515 cyl, 255 head, 63 sec, 512 bytes/sec, 490232704
> sec total
> sd1 at scsibus1 targ 2 lun 0: <3WARE, Host drive #02, > SCSI2 0/direct
> fixed
> sd1: 478742MB, 61031 cyl, 255 head, 63 sec, 512 bytes/sec, 980465408
> sec total
> sd2 at scsibus1 targ 7 lun 0: <3WARE, Host drive #07, > SCSI2 0/direct
> fixed
> sd2: 239372MB, 30515 cyl, 255 head, 63 sec, 512 bytes/sec, 490234752
> sec total
> em0 at pci2 dev 7 function 0 "Intel PRO/1000MT (PWLA8490MT)" rev 0x01:
> irq 11, a
> ddress: 00:e0:81:24:f0:97
> isa0 at pcib0
> isadma0 at isa0
> 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
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: using exception 16
> ddress: 00:e0:81:24:f0:97
> isa0 at pcib0
> isadma0 at isa0
> 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
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> biomask c440 netmask ce40 ttymask cec2
> pctr: user-level cycle counter enabled
> dkcsum: sd0 matched BIOS disk 80
> dkcsum: sd1 matched BIOS disk 81
> dkcsum: sd2 matched BIOS disk 82
> root on sd0a
> rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
>
> Jean-Gérard Pailloncy
>
>
--
the only reason you're still alive
is because someone has decided to let you live