On Fri, Sep 19, 2014 at 10:05:35PM -0700, patrick keshishian wrote:

> Hi,
> 
> Just ran into something strange. I was running 'sudo cdio cdrip'
> and in another shell running a memory-hungry perl script, this
> caused a bunch of processes to swap out (namely Xorg). Once
> the cdrip was done, and I killed the perl script, and let the
> system "calm down", I still noticed lag in moving the mouse
> around in X. Looking at top, Xorg (and other processes, which
> were swapped, ones that show 4K RES) seem to want to stay swapped.
> Playing in X, trying to force it to unswap, I see its RES increase,
> but once I leave it alone, I can see in top the its RES goes
> down, until I start doing things in X. Same with other processes.
> cu is at 4K RES ATM, If I start typing in its session, RES
> goes up to 250K, then back down to 4K.
> 
> live example of this xterm I'm typing in:
> 
> 13634 sidster    2    0 3120K  352K sleep     select    0:02  0.00% xterm
> 
> stop typing and:
> 
> 13634 sidster    2    0 3120K    4K sleep     select    0:02  0.00% xterm
> 
> What other info can i provide that would be useful? Before
> I reboot this box (cause I can't stand working like this)?

Lacking informationm, it looks like your system still has shortage of
memory, i.e. large processes are still there. I never saw the
phenomenon you are describing after the memory hungry processes were gone,

        -Otto

> 
> Cheers,
> --patrick
> 
> 
> $ sysctl kern.version
> kern.version=OpenBSD 5.6-current (GENERIC) #345: Tue Sep  9 00:22:24 MDT 2014
>     t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> 
> 
> OpenBSD 5.6-current (GENERIC) #345: Tue Sep  9 00:22:24 MDT 2014
>     t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 520028160 (495MB)
> avail mem = 497561600 (474MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0100 (43 entries)
> bios0: vendor Award Software International, Inc. version "F9" date 05/11/2006
> bios0: Gigabyte Technology Co., Ltd. GA-K8N-SLi / GA-K8N-SLi-RH
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP MCFG APIC
> acpi0: wakeup devices HUB0(S5) XVR0(S5) XVR1(S5) XVR2(S5) XVR3(S5) USB0(S3) 
> USB2(S3) MMAC(S5) MMCI(S5) UAR1(S5)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimcfg0 at acpi0 addr 0xd0000000, bus 0-255
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD Athlon(tm) 64 Processor 3200+, 2010.53 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF
> cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
> 64b/line 16-way L2 cache
> cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: AMD erratum 89 present, BIOS upgrade may be required
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 201MHz
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (HUB0)
> acpicpu0 at acpi0: PSS
> acpibtn0 at acpi0: PWRB
> cpu0: Cool'n'Quiet K8 2010 MHz: speeds: 2000 1000 MHz
> pci0 at mainbus0 bus 0
> "NVIDIA nForce4 DDR" rev 0xa3 at pci0 dev 0 function 0 not configured
> pcib0 at pci0 dev 1 function 0 "NVIDIA nForce4 ISA" rev 0xa3
> nviic0 at pci0 dev 1 function 1 "NVIDIA nForce4 SMBus" rev 0xa2
> iic0 at nviic0
> spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC3200CL3.0
> iic1 at nviic0
> iic1: addr 0x4e 01=06 02=10 03=72 05=80 06=0f 0a=ff 0e=e0 0f=ff words 00=00ff 
> 01=06ff 02=10ff 03=72ff 04=00ff 05=80ff 06=0fff 07=00ff
> ohci0 at pci0 dev 2 function 0 "NVIDIA nForce4 USB" rev 0xa2: apic 2 int 10, 
> version 1.0, legacy support
> ehci0 at pci0 dev 2 function 1 "NVIDIA nForce4 USB" rev 0xa3: apic 2 int 11
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
> auich0 at pci0 dev 4 function 0 "NVIDIA nForce4 AC97" rev 0xa2: apic 2 int 5, 
> nForce4 AC97
> ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
> audio0 at auich0
> pciide0 at pci0 dev 6 function 0 "NVIDIA nForce4 IDE" rev 0xf2: DMA, channel 
> 0 configured to compatibility, channel 1 configured to compatibility
> wd0 at pciide0 channel 0 drive 0: <HDS722525VLAT80>
> wd0: 16-sector PIO, LBA48, 238474MB, 488395055 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
> pciide0: channel 1 disabled (no drives)
> pciide1 at pci0 dev 7 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
> pciide1: using apic 2 int 11 for native-PCI interrupt
> atapiscsi0 at pciide1 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GH24NS95, RN01> ATAPI 5/cdrom 
> removable
> cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
> pciide2 at pci0 dev 8 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
> pciide2: using apic 2 int 10 for native-PCI interrupt
> ppb0 at pci0 dev 9 function 0 "NVIDIA nForce4" rev 0xa2
> pci1 at ppb0 bus 1
> dc0 at pci1 dev 7 function 0 "Lite-On PNIC" rev 0x20: apic 2 int 5, address 
> 00:02:e3:07:cc:df
> bmtphy0 at dc0 phy 1: BCM5201 10/100 PHY, rev. 2
> nfe0 at pci0 dev 10 function 0 "NVIDIA CK804 LAN" rev 0xa3: apic 2 int 11, 
> address 00:16:e6:82:17:da
> ciphy0 at nfe0 phy 7: CS8201 10/100/1000TX PHY, rev. 3
> ppb1 at pci0 dev 11 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 12 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 13 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 14 function 0 "NVIDIA nForce4 PCIE" rev 0xa3
> pci5 at ppb4 bus 5
> radeondrm0 at pci5 dev 0 function 0 "ATI Radeon X300" rev 0x00
> drm0 at radeondrm0
> radeondrm0: apic 2 int 10
> "ATI Radeon X300 Sec" rev 0x00 at pci5 dev 0 function 1 not configured
> pchb0 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
> pchb1 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
> pchb2 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
> kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00
> 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
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> it0 at isa0 port 0x2e/2: IT8712F rev 5, EC port 0x290
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
> uhub2 at uhub0 port 5 "Genesys Logic USB2.0 Hub" rev 2.00/7.02 addr 2
> uhub3 at uhub1 port 8 "Fujitsu Component product 0x100e" rev 2.00/1.03 addr 2
> uhidev0 at uhub3 port 1 configuration 1 interface 0 "Microsoft Microsoft 
> 3-Button Mouse with IntelliEye(TM)" rev 1.10/3.00 addr 3
> uhidev0: iclass 3/1
> ums0 at uhidev0: 3 buttons, Z dir
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub3 port 4 configuration 1 interface 0 "Fujitsu Component Type 7 
> Keyboard" rev 2.00/1.03 addr 4
> uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes, country code 33
> wskbd1 at ukbd0 mux 1
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on wd0a (63fc0d2826838f20.a) swap on wd0b dump on wd0b
> drm: initializing kernel modesetting (RV380 0x1002:0x5B60 0x1043:0x0082).
> radeondrm0: VRAM: 128M 0x00000000E0000000 - 0x00000000E7FFFFFF (128M used)
> radeondrm0: GTT: 512M 0x00000000C0000000 - 0x00000000DFFFFFFF
> drm: PCIE GART of 512M enabled (table at 0x00000000E0040000).
> radeondrm0: 1600x1200
> wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wskbd1: connecting to wsdisplay0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> dc0: failed to force tx to idle state

Reply via email to