On Sat, Sep 20, 2014 at 08:53:58AM +0200, Otto Moerbeek wrote:
> 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,

Wish I knew what other info to provide. This is top output
before I rebooted the box:

load averages:  0.08,  0.08,  0.08           amd64.local 23:07:02
43 processes: 42 idle, 1 on processor
CPU states:  5.9% user,  0.1% nice,  3.3% system,  0.0% interrupt, 90.7% idle
Memory: Real: 6692K/461M act/tot Free: 22M Cache: 37M Swap: 47M/2055M

  PID USERNAME PRI NICE  SIZE   RES STATE     WAIT      TIME    CPU COMMAND
23352 sidster    2    0 6828K 3364K sleep     kqread    3:58  0.44% tmux
15110 _sndio     2  -20  856K    4K idle      poll     12:04  0.00% sndiod
26246 _pflogd    4    0  740K  140K sleep     bpf       0:04  0.00% pflogd
16142 _x11       2    0   28M  992K idle      select    0:03  0.00% Xorg
    1 root      10    0  552K    4K idle      wait      0:01  0.00% init
 6818 sidster    2    0 1712K 2540K sleep     poll      0:01  0.00% top
 1256 sidster    2    0 1200K  824K idle      select    0:01  0.00% ssh
 3702 sidster   18    0 1056K    4K idle      pause     0:00  0.00% ksh
 2758 sidster   18    0  776K  720K sleep     pause     0:00  0.00% ksh
 8700 _syslogd   2    0  912K  536K sleep     poll      0:00  0.00% syslogd
24187 root       2    0 1460K  116K idle      poll      0:00  0.00% xdm
26400 root       2    0  992K  496K sleep     select    0:00  0.00% cron
 3037 uucp       2    0  748K  436K idle      kqread    0:00  0.00% cu
 3915 sidster    2    0 1092K    4K idle      select    0:00  0.00% ssh
29334 sidster    3    0  760K    4K idle      ttyin     0:00  0.00% ksh
 3468 _ntp       2  -20  844K  720K idle      poll      0:00  0.00% ntpd
 2982 _smtpd     2    0 1744K    4K idle      kqread    0:00  0.00% smtpd
15793 _smtpq     2    0 1600K    4K idle      kqread    0:00  0.00% smtpd
13434 root      18    0  752K    4K idle      pause     0:00  0.00% xdm
 4428 sidster   18    0  672K   20K idle      pause     0:00  0.00% ksh
19015 root       2    0 1552K    4K idle      kqread    0:00  0.00% smtpd
20298 _x11       2    0  940K    4K idle      poll      0:00  0.00% xconsole
19314 _smtpd     2    0 1560K    4K idle      kqread    0:00  0.00% smtpd
25006 _smtpd     2    0 1676K    4K idle      kqread    0:00  0.00% smtpd
 7575 root       2  -20  788K  532K idle      poll      0:00  0.00% ntpd
 6229 sidster   18    0  776K    4K idle      pause     0:00  0.00% ksh
13594 root       2    0 2540K    4K idle      netio     0:00  0.00% Xorg
32714 _smtpd     2    0 1404K    4K idle      kqread    0:00  0.00% smtpd
 3018 _smtpd     2    0 1332K    4K idle      kqread    0:00  0.00% smtpd
13887 sidster    2    0  968K  380K idle      kqread    0:00  0.00% tmux
 6124 sidster   18    0  764K    4K idle      pause     0:00  0.00% ksh
19081 sidster   18    0  620K    4K idle      pause     0:00  0.00% ksh
14425 root       3    0  424K    4K idle      ttyin     0:00  0.00% getty
26697 root       3    0  568K    4K idle      ttyin     0:00  0.00% getty
30470 root       3    0  492K    4K idle      ttyin     0:00  0.00% getty
29335 root       3    0  648K    4K idle      ttyin     0:00  0.00% getty
19748 root       2    0  824K    4K idle      select    0:00  0.00% lpd
31411 root       2    0  676K    4K idle      netio     0:00  0.00% pflogd
 8289 root       2    0  912K    4K idle      netio     0:00  0.00% syslogd
32094 root       2    0 1192K    4K idle      select    0:00  0.00% sshd
 7950 root       2    0  812K    4K idle      netio     0:00  0.00% xconsole
12367 _ntp       2    0  772K    4K idle      poll      0:00  0.00% ntpd
15324 sidster   28    0  612K 1248K onproc    -         0:00  0.00% top


And if I'm adding SIZE and RES up correctly:

        SIZE sum=78,663,680
        RES  sum=13,492,224

(After reboot)
        SIZE sum=74,117,120
        RES  sum=121,528,320

--patrick


>       -Otto
> 
> > 
> > Cheers,
> > --patrick
> > 
> > 
> > $ sysctl kern.version
> > kern.version=OpenBSD 5.6-current (GENERIC) #345: Tue Sep  9 00:22:24 MDT 
> > 2014
> >     [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
> > 
> > 
> > OpenBSD 5.6-current (GENERIC) #345: Tue Sep  9 00:22:24 MDT 2014
> >     [email protected]:/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