Taking from misc@ and transferring to ports@ at Stuarts advise. On 11/20/13 11:11, Marc Peters wrote: > Hi List, > > i wanted to move my main mailserver from one to another. To avoid update > hassles i jumped directly to a recent -current from the beginning of > this month (full dmesg below): > > OpenBSD 5.4-current (GENERIC.MP) #145: Sun Nov 10 22:55:43 MST 2013 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > The older one is running 5.4-STABLE. > > I installed dovecot from packages, moved the configuration over and > vimdiffed the files. > > When i started dovecot, i got out of memory errors right at startup from > the master process: > > Nov 20 10:50:55 master: Fatal: pool_system_realloc(8589934592): Out of > memory > > A search at Google yielded nothing related to the master process, only > for other processes like imap, auth or Managesieve. > > The relevant lines were added to login.conf and rebuilded it: > > dovecot:\ > :openfiles-cur=512:\ > :openfiles-max=2048:\ > :tc=daemon: > > I even tried to raise the stacksize for dovecot, but to no avail (the > message doesn't change, so it must be something different). > > Does anybody has an idea where to look? > > Marc > > The relevant infos: > > /etc/dovecot # dovecot --version > 2.2.7 > > /etc/dovecot # dovecot -n > # 2.2.7: /etc/dovecot/dovecot.conf > # OS: OpenBSD 5.4 amd64 > auth_mechanisms = plain login digest-md5 > auth_socket_path = /var/dovecot/auth-userdb > first_valid_gid = 2000 > first_valid_uid = 2000 > hostname = mail.mpeters.org > imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags > imap_idle_notify_interval = 26 mins > last_valid_gid = 2000 > prefix = > } > passdb { > args = /etc/dovecot/dovecot-sql.conf.ext > driver = sql > } > plugin { > sieve = /mail/vhosts/%d/%n/.dovecot.sieve > sieve_dir = ~/sieve > } > pop3_client_workarounds = outlook-no-nuls oe-ns-eoh > protocols = imap pop3 sieve > sendmail_path = /usr/local/sbin/sendmail > service auth-worker { > user = $default_internal_user > } > service auth { > unix_listener /var/spool/postfix/private/auth { > group = _postfix > mode = 0660 > user = _postfix > } > unix_listener auth-userdb { > group = vmail > mode = 0660 > user = vmail > } > } > service imap-login { > inet_listener imaps { > port = 993 > ssl = yes > } > process_min_avail = 5 > service_count = 0 > vsz_limit = 512 M > } > service managesieve-login { > inet_listener sieve { > port = 4190 > } > inet_listener sieve_deprecated { > port = 2000 > } > } > ssl = required > ssl_cert = </etc/ssl/dovecotcert.pem > ssl_key = </etc/ssl/private/dovecot.pem > userdb { > driver = prefetch > } > userdb { > args = /etc/dovecot/dovecot-sql.conf.ext > driver = sql > } > protocol lda { > mail_plugins = " sieve" > } > protocol imap { > mail_max_userip_connections = 100 > } > > /etc/dovecot # dmesg > OpenBSD 5.4-current (GENERIC.MP) #145: Sun Nov 10 22:55:43 MST 2013 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 17144807424 (16350MB) > avail mem = 16680284160 (15907MB) > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9ac00 (26 entries) > bios0: vendor American Megatrends Inc. version "1.0a" date 05/22/2013 > bios0: Supermicro AS -3012MA-H12TRF-MM001 > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S1 S4 S5 > acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT EINJ BERT ERST HEST > acpi0: wakeup devices PC02(S4) PC03(S4) SBAZ(S4) PSKE(S4) PSMS(S4) > ECIR(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) > UHC7(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 16 (boot processor) > cpu0: AMD Opteron(tm) Processor 3365 , 2300.31 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu0: smt 0, core 0, package 0 > cpu0: apic clock running at 199MHz > cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE > cpu1 at mainbus0: apid 17 (application processor) > cpu1: AMD Opteron(tm) Processor 3365 , 2300.00 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu1: smt 0, core 1, package 0 > cpu2 at mainbus0: apid 18 (application processor) > cpu2: AMD Opteron(tm) Processor 3365 , 2300.00 MHz > cpu2: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu2: smt 0, core 2, package 0 > cpu3 at mainbus0: apid 19 (application processor) > cpu3: AMD Opteron(tm) Processor 3365 , 2300.00 MHz > cpu3: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu3: smt 0, core 3, package 0 > cpu4 at mainbus0: apid 20 (application processor) > cpu4: AMD Opteron(tm) Processor 3365 , 2300.00 MHz > cpu4: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu4: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu4: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu4: smt 0, core 4, package 0 > cpu5 at mainbus0: apid 21 (application processor) > cpu5: AMD Opteron(tm) Processor 3365 , 2300.00 MHz > cpu5: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu5: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu5: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu5: smt 0, core 5, package 0 > cpu6 at mainbus0: apid 22 (application processor) > cpu6: AMD Opteron(tm) Processor 3365 , 2300.00 MHz > cpu6: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu6: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu6: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu6: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu6: smt 0, core 6, package 0 > cpu7 at mainbus0: apid 23 (application processor) > cpu7: AMD Opteron(tm) Processor 3365 , 2300.00 MHz > cpu7: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1 > cpu7: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB > 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache > cpu7: ITLB 48 4KB entries fully associative, 24 4MB entries fully > associative > cpu7: DTLB 64 4KB entries fully associative, 64 4MB entries fully > associative > cpu7: smt 0, core 7, package 0 > vga1 at pci2 dev 4 function 0 "Matrox MGA G200eW" rev 0x0a > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > ohci4 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 0 int 18, > version 1.0, legacy support > pchb1 at pci0 dev 24 function 0 "AMD AMD64 15/0xh Link Cfg" rev 0x00 > pchb2 at pci0 dev 24 function 1 "AMD AMD64 15/0xh Address Map" rev 0x00 > pchb3 at pci0 dev 24 function 2 "AMD AMD64 15/0xh DRAM Cfg" rev 0x00 > km0 at pci0 dev 24 function 3 "AMD AMD64 15/0xh Misc Cfg" rev 0x00 > pchb4 at pci0 dev 24 function 4 "AMD AMD64 15/0xh CPU Power" rev 0x00 > pchb5 at pci0 dev 24 function 5 "AMD AMD64 15/0xh Host" rev 0x00 > usb2 at ohci0: USB revision 1.0 > uhub2 at usb2 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > usb3 at ohci1: USB revision 1.0 > uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > usb4 at ohci2: USB revision 1.0 > uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > usb5 at ohci3: USB revision 1.0 > uhub5 at usb5 "ATI OHCI 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 > 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 > spkr0 at pcppi0 > wbsio0 at isa0 port 0x2e/2: W83627DHG-P rev 0x73 > wbsio0 port 0xa10/2 not configured > usb6 at ohci4: USB revision 1.0 > uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > uhidev0 at uhub5 port 2 configuration 1 interface 0 "Winbond Electronics > Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 2 > uhidev0: iclass 3/1 > ums0 at uhidev0: 3 buttons, Z dir > wsmouse0 at ums0 mux 0 > uhidev1 at uhub5 port 2 configuration 1 interface 1 "Winbond Electronics > Corp Hermon USB hidmouse Device" rev 1.10/0.01 addr 2 > uhidev1: iclass 3/1 > ukbd0 at uhidev1: 8 variable keys, 6 key codes > wskbd1 at ukbd0 mux 1 > wskbd1: connecting to wsdisplay0 > vscsi0 at root > scsibus1 at vscsi0: 256 targets > softraid0 at root > scsibus2 at softraid0: 256 targets > sd2 at scsibus2 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed > sd2: 952839MB, 512 bytes/sector, 1951415025 sectors > root on sd2a (ce89b172120320c2.a) swap on sd2b dump on sd2b > piixpm0: exec: op 1, addr 0x2f, cmdlen 1, len 1, flags 0x08: timeout, > status 0x9<BUSY,BUSERR> > atascsi_passthru_done, timeout > atascsi_passthru_done, timeout > atascsi_passthru_done, timeout > atascsi_passthru_done, timeout > atascsi_passthru_done, timeout >