Forwarding this also to tech@. Any ideas, anyone?
-------- Weitergeleitete Nachricht -------- Betreff: Output of netstat -m shows lower value with higher kern.maxclusters Datum: Wed, 12 Apr 2017 13:47:15 +0200 Von: Marc Peters <m...@mpeters.org> An: Openbsd-Misc <m...@openbsd.org> Hi, after i updated from 6.0 to 6.1, i saw that kern.maxclusters was raised and removed our local change to kern.maxclusters. Although the value is now way higher, the output shows a lower number than before: before the upgrade: ~ # sysctl kern.maxclusters kern.maxclusters=24578 ~ # netstat -m 314 mbufs in use: 298 mbufs allocated to data 6 mbufs allocated to packet headers 10 mbufs allocated to socket names and addresses 296/2192/24584 mbuf 2048 byte clusters in use (current/peak/max) 0/8/24584 mbuf 4096 byte clusters in use (current/peak/max) 0/8/24584 mbuf 8192 byte clusters in use (current/peak/max) 0/14/24584 mbuf 9216 byte clusters in use (current/peak/max) 0/10/24580 mbuf 12288 byte clusters in use (current/peak/max) 0/8/24584 mbuf 16384 byte clusters in use (current/peak/max) 0/8/24584 mbuf 65536 byte clusters in use (current/peak/max) 1948 Kbytes allocated to network (34% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines after the upgrade: ~ # sysctl kern.maxclusters kern.maxclusters=262144 ~ # netstat -m 40 mbufs in use: 24 mbufs allocated to data 5 mbufs allocated to packet headers 11 mbufs allocated to socket names and addresses 21/168/64 mbuf 2048 byte clusters in use (current/peak/max) 0/0/120 mbuf 2112 byte clusters in use (current/peak/max) 0/8/64 mbuf 4096 byte clusters in use (current/peak/max) 0/0/64 mbuf 8192 byte clusters in use (current/peak/max) 0/0/112 mbuf 9216 byte clusters in use (current/peak/max) 0/0/80 mbuf 12288 byte clusters in use (current/peak/max) 0/0/64 mbuf 16384 byte clusters in use (current/peak/max) 0/0/64 mbuf 65536 byte clusters in use (current/peak/max) 420 Kbytes allocated to network (12% in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines Is this just an output issue, or are the numbers now related to other values? Cheers, Marc dmesg: OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr 1 13:45:56 MDT 2017 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 25742729216 (24550MB) avail mem = 24957874176 (23801MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf7fe000 (127 entries) bios0: vendor HP version "P68" date 07/02/2013 bios0: HP ProLiant DL360 G7 acpi0 at bios0: rev 2 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP SPCR MCFG HPET FFFF SPMI ERST APIC SRAT FFFF BERT HEST DMAR SSDT SSDT SSDT SSDT SSDT acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimcfg0 at acpi0 addr 0xe0000000, bus 0-63 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 X5687 @ 3.60GHz, 3600.61 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu0: 256KB 64b/line 8-way L2 cache cpu0: TSC frequency 3600606060 Hz cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 133MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE cpu1 at mainbus0: apid 32 (application processor) cpu1: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.14 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 0, package 1 cpu2 at mainbus0: apid 20 (application processor) cpu2: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 10, package 0 cpu3 at mainbus0: apid 52 (application processor) cpu3: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 0, core 10, package 1 cpu4 at mainbus0: apid 2 (application processor) cpu4: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu4: 256KB 64b/line 8-way L2 cache cpu4: smt 0, core 1, package 0 cpu5 at mainbus0: apid 34 (application processor) cpu5: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu5: 256KB 64b/line 8-way L2 cache cpu5: smt 0, core 1, package 1 cpu6 at mainbus0: apid 18 (application processor) cpu6: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu6: 256KB 64b/line 8-way L2 cache cpu6: smt 0, core 9, package 0 cpu7 at mainbus0: apid 50 (application processor) cpu7: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT cpu7: 256KB 64b/line 8-way L2 cache cpu7: smt 0, core 9, package 1 ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins ioapic1 at mainbus0: apid 0 pa 0xfec80000, version 20, 24 pins acpiprt0 at acpi0: bus 1 (IP2P) acpiprt1 at acpi0: bus 17 (IPT1) acpiprt2 at acpi0: bus -1 (IPT3) acpiprt3 at acpi0: bus 2 (IPT5) acpiprt4 at acpi0: bus 5 (PT01) acpiprt5 at acpi0: bus 9 (PT03) acpiprt6 at acpi0: bus 13 (PT04) acpiprt7 at acpi0: bus 14 (PT05) acpiprt8 at acpi0: bus 15 (PT06) acpiprt9 at acpi0: bus 3 (PT07) acpiprt10 at acpi0: bus 4 (PT08) acpiprt11 at acpi0: bus 6 (PT09) acpiprt12 at acpi0: bus 16 (PT0A) acpiprt13 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpicpu1 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpicpu2 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpicpu3 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpicpu4 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpicpu5 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpicpu6 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpicpu7 at acpi0: C3(350@96 mwait.1@0x20), C3(500@64 mwait.1@0x10), C1(1000@1 mwait.1) acpitz0 at acpi0: critical temperature is 31 degC "IPI0001" at acpi0 not configured "PNP0303" at acpi0 not configured "PNP0F13" at acpi0 not configured "PNP0A06" at acpi0 not configured "PNP0501" at acpi0 not configured "ACPI000D" at acpi0 not configured ipmi at mainbus0 not configured pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel 5520 Host" rev 0x13 ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x13 pci1 at ppb0 bus 5 ciss0 at pci1 dev 0 function 0 "Hewlett-Packard Smart Array" rev 0x01: apic 0 int 4 ciss0: 1 LD, HW rev 2, FW 6.40/6.40, 64bit fifo rro scsibus1 at ciss0: 1 targets sd0 at scsibus1 targ 0 lun 0: <HP, LOGICAL VOLUME, 6.40> SCSI3 0/direct fixed sd0: 286070MB, 512 bytes/sector, 585871964 sectors ppb1 at pci0 dev 2 function 0 "Intel X58 PCIE" rev 0x13 pci2 at ppb1 bus 12 ppb2 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x13 pci3 at ppb2 bus 9 ppb3 at pci0 dev 4 function 0 "Intel X58 PCIE" rev 0x13 pci4 at ppb3 bus 13 ppb4 at pci0 dev 5 function 0 "Intel X58 PCIE" rev 0x13 pci5 at ppb4 bus 14 ppb5 at pci0 dev 6 function 0 "Intel X58 PCIE" rev 0x13 pci6 at ppb5 bus 15 ppb6 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x13 pci7 at ppb6 bus 3 bnx0 at pci7 dev 0 function 0 "Broadcom BCM5709" rev 0x20: apic 0 int 6 bnx1 at pci7 dev 0 function 1 "Broadcom BCM5709" rev 0x20: apic 0 int 13 ppb7 at pci0 dev 8 function 0 "Intel X58 PCIE" rev 0x13 pci8 at ppb7 bus 4 bnx2 at pci8 dev 0 function 0 "Broadcom BCM5709" rev 0x20: apic 0 int 7 bnx3 at pci8 dev 0 function 1 "Broadcom BCM5709" rev 0x20: apic 0 int 15 ppb8 at pci0 dev 9 function 0 "Intel X58 PCIE" rev 0x13 pci9 at ppb8 bus 6 ppb9 at pci0 dev 10 function 0 "Intel X58 PCIE" rev 0x13 pci10 at ppb9 bus 16 pchb1 at pci0 dev 13 function 0 vendor "Intel", unknown product 0x343a rev 0x13 pchb2 at pci0 dev 13 function 1 vendor "Intel", unknown product 0x343b rev 0x13 pchb3 at pci0 dev 13 function 2 vendor "Intel", unknown product 0x343c rev 0x13 pchb4 at pci0 dev 13 function 3 vendor "Intel", unknown product 0x343d rev 0x13 pchb5 at pci0 dev 13 function 4 "Intel 5520/X58 QuickPath" rev 0x13 pchb6 at pci0 dev 13 function 5 "Intel 5520 QuickPath" rev 0x13 pchb7 at pci0 dev 13 function 6 vendor "Intel", unknown product 0x341a rev 0x13 pchb8 at pci0 dev 14 function 0 vendor "Intel", unknown product 0x341c rev 0x13 pchb9 at pci0 dev 14 function 1 vendor "Intel", unknown product 0x341d rev 0x13 pchb10 at pci0 dev 14 function 2 vendor "Intel", unknown product 0x341e rev 0x13 pchb11 at pci0 dev 14 function 3 vendor "Intel", unknown product 0x341f rev 0x13 pchb12 at pci0 dev 14 function 4 vendor "Intel", unknown product 0x3439 rev 0x13 "Intel X58 Misc" rev 0x13 at pci0 dev 20 function 0 not configured "Intel X58 GPIO" rev 0x13 at pci0 dev 20 function 1 not configured "Intel X58 RAS" rev 0x13 at pci0 dev 20 function 2 not configured ppb10 at pci0 dev 28 function 0 "Intel 82801JI PCIE" rev 0x00 pci11 at ppb10 bus 17 ppb11 at pci0 dev 28 function 4 "Intel 82801JI PCIE" rev 0x00 pci12 at ppb11 bus 2 "Hewlett-Packard iLO3 Slave" rev 0x04 at pci12 dev 0 function 0 not configured "Hewlett-Packard iLO3 Management" rev 0x04 at pci12 dev 0 function 2 not configured uhci0 at pci12 dev 0 function 4 "Hewlett-Packard USB" rev 0x01: apic 8 int 17 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 configuration 1 interface 0 "Hewlett-Packard UHCI root hub" rev 1.00/1.00 addr 1 uhci1 at pci0 dev 29 function 0 "Intel 82801JI USB" rev 0x00: apic 8 int 20 uhci2 at pci0 dev 29 function 1 "Intel 82801JI USB" rev 0x00: apic 8 int 23 uhci3 at pci0 dev 29 function 2 "Intel 82801JI USB" rev 0x00: apic 8 int 22 uhci4 at pci0 dev 29 function 3 "Intel 82801JI USB" rev 0x00: apic 8 int 23 ehci0 at pci0 dev 29 function 7 "Intel 82801JI USB" rev 0x00: apic 8 int 20 usb1 at ehci0: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb12 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x90 pci13 at ppb12 bus 1 radeondrm0 at pci13 dev 3 function 0 "ATI ES1000" rev 0x02 drm0 at radeondrm0 radeondrm0: apic 8 int 23 pcib0 at pci0 dev 31 function 0 "Intel 82801JIB LPC" rev 0x00 pciide0 at pci0 dev 31 function 2 "Intel 82801JI SATA" rev 0x00: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide0: using apic 8 int 17 for native-PCI interrupt atapiscsi0 at pciide0 channel 0 drive 0 scsibus2 at atapiscsi0: 2 targets cd0 at scsibus2 targ 0 lun 0: <TEAC, DV-28S-W, C.2D> ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb5 at uhci4: USB revision 1.0 uhub5 at usb5 configuration 1 interface 0 "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 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT uhidev0 at uhub0 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 uhub0 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 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a (db5ad1200091e46f.a) swap on sd0b dump on sd0b bnx0: address 44:1e:a1:56:95:fc brgphy0 at bnx0 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8 bnx1: address 44:1e:a1:56:95:fe brgphy1 at bnx1 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8 bnx2: address 44:1e:a1:56:a5:10 brgphy2 at bnx2 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8 bnx3: address 44:1e:a1:56:a5:12 brgphy3 at bnx3 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8 radeondrm0: 1024x768, 8bpp wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation)