Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Mar 2015 23:56:25 -0800
From:      "CK" <nibbana@gmx.us>
To:        <freebsd-questions@freebsd.org>
Subject:   thrashing + lost files
Message-ID:  <0MegOs-1Ys1A80zUW-00OIFG@mail.gmx.com>

next in thread | raw e-mail | index | archive | help
I would like any thoughts or ideas on how to prevent the following problem,
because it is making my computer completely unusable, wasting many efforts.
I am using this mail-list because freebsd.forums.org has become completely
unusable to those with dial-up connections, requiring 10 seconds for each
character typed ...  no exaggeration.


PROBLEM:
-------
This is a very bad problem I have experienced several times of late, and
come to think of it, has only happened since using GELI encruption (recently
upgraded from 4.11 to 9.2).  The easy answer may be "turn off encryption",
but this is not an easy problem to test and verify:

The result is the loss of many critical files from a hard drive, as if a "rm
*" was done in the home directory.  This occurs after the thrashing when
Xwindow is accidently shutdown with Opera open with many javascript page tabs,
eg, being a memory pig - consuming 1/2 of RAM (256M), which after dumping
core, writes a large amount of data (crashlog) even after Xwindow is down:

pid 1118 (opera), uid 1001: exited on signal 11 (core dumped)


ASSOCIATED PROBLEM:
------------------
One bad problem under these conditions, where one has to umount a partition,
is that umount-ing is not possible if the partition is in use, and it seems
there is no easy way to find every process using a partition ... is there?
I was forced to use "umount -f", which resulted in error messages filling
the screen from complaining processes, making it difficult to kill them.


FSCK RESULTS:
------------
Of interest, is that each time fsck was run, more files were lost!

# fsck -t ufs -p /dev/ada0p6.eli
/dev/ada0p6.eli: NO WRITE ACCESS
/dev/ada0p6.eli: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

# fsck -t ufs /dev/ada0p6.eli
** /dev/ada0p6.eli (NO WRITE)
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=2327435 (8 should be 0)
CORRECT? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=2327428  OWNER=abc MODE=100600
SIZE=16847 MTIME=Mar 17 05:07 2015
CLEAR? no

UNREF FILE I=2327439  OWNER=abc MODE=100600
SIZE=16944 MTIME=Mar 17 14:30 2015
CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

14850 files, 822188 used, 5777153 free (569 frags, 722073 blocks, 0.0% fragmenta
tion)


# fsck -t ufs /dev/ada0p6.eli
** /dev/ada0p6.eli (NO WRITE)
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=2327435 (8 should be 0)
CORRECT? no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=2327428  OWNER=abc MODE=100600
SIZE=16847 MTIME=Mar 17 05:07 2015
CLEAR? no

UNREF FILE I=2327439  OWNER=abc MODE=100600
SIZE=16944 MTIME=Mar 17 14:30 2015
CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

14854 files, 822239 used, 5777102 free (558 frags, 722068 blocks, 0.0% fragmenta
tion)


UMOUNT -F:
---------
After running umount -f, the disk appears ok ... ?

# fsck -t ufs /dev/ada0p6.eli
** /dev/ada0p6.eli (NO WRITE)
** Last Mounted on /home
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
14843 files, 822175 used, 5777167 free (559 frags, 722076 blocks, 0.0% fragmenta
tion)


LOST FILES:
----------
A lost+found directory is never created, which ignorantly, I think should be
created and filled with the "unreferenced inodes" (if that is the correct
term).  Regardless, I have lost weeks of work in the last few months from this
problem, and I'm losing faith.


HARDWARE:
--------
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.2-RELEASE #3: Wed Mar 26 03:00:41 AKDT 2014
    root@ai1.alaska.net:/usr/obj/umass/src/sys/MYKERN i386
gcc version 4.2.1 20070831 patched [FreeBSD]
CPU: VIA Nehemiah (666.56-MHz 686-class CPU)
  Origin = "CentaurHauls"  Id = 0x698  Family = 0x6  Model = 0x9  Stepping = 8
  Features=0x381b83f<FPU,VME,DE,PSE,TSC,MSR,SEP,MTRR,PGE,CMOV,PAT,MMX,FXSR,SSE>
  VIA Padlock Features=0xdd<RNG,AES>
real memory  = 536870912 (512 MB)
avail memory = 482779136 (460 MB)
cryptosoft0: <software crypto> on motherboard
padlock0: <AES-CBC> on motherboard
acpi0: <VT9174 AWRDACPI> on motherboard
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 1def0000 (3) failed
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 862x (CLE266) host to PCI bridge> on hostb0
agp0: aperture size is 64M
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem 0xe4000000-0xe7ffffff,0xe8000000-0xe8ffffff irq 11 at device 0.0 on pci1
drm0: <VIA CLE266> on vgapci0
info: [drm] AGP at 0xe0000000 64MB
info: [drm] Initialized via 2.11.1 20070202
uhci0: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 11 at device 16.0 on pci0
usbus0 on uhci0
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 3 at device 16.1 on pci0
usbus1 on uhci1
uhci2: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 10 at device 16.2 on pci0
usbus2 on uhci2
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xea000000-0xea0000ff irq 5 at device 16.3 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci0
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xdc00-0xdc0f at device 17.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
pcm0: <VIA VT8235> port 0xe000-0xe0ff irq 10 at device 17.5 on pci0
pcm0: <ICEnsemble VT1616 AC97 Codec>
pcm0: <VIA DXS Enabled: DXS 4 / SGD 1 / REC 1>
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
orm0: <ISA Option ROM> at iomem 0xd0000-0xd7fff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
ugen0.1: <VIA> at usbus0
uhub0: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <VIA> at usbus1
uhub1: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <VIA> at usbus2
uhub2: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <VIA> at usbus3
uhub3: <VIA EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <WDC WD400AB-22CDB0 22.04A22> ATA-5 device
ada0: 100.000MB/s transfers (UDMA5, PIO 8192bytes)
ada0: 38166MB (78165360 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad0
ada1 at ata1 bus 0 scbus1 target 1 lun 0
ada1: <WDC AC24300L 14.10R11> ATA-4 device
ada1: 33.300MB/s transfers (UDMA2, PIO 8192bytes)
ada1: 4112MB (8421840 512 byte sectors: 15H 63S/T 8912C)
ada1: Previously was known as ad1
Timecounter "TSC" frequency 666563644 Hz quality 800
uhub3: 6 ports with 6 removable, self powered
ugen3.2: <Generic> at usbus3
umass0: <Generic Flash Card ReaderWriter, class 0/0, rev 2.00/1.00, addr 2> on usbus3
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Multiple Card  Reader 1.00> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 30436MB (62333952 512 byte sectors: 255H 63S/T 3880C)
da0: quirks=0x2<NO_6_BYTE>
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <Memorex 52MAXX 3252AJ1 4WS2> Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: cd present [297324 x 2048 byte records]
Trying to mount root from ufs:/dev/ada0p2 [rw]...
GEOM_ELI: Device ada0p3.eli created.
GEOM_ELI: Encryption: 3DES-CBC 192
GEOM_ELI:     Crypto: software
GEOM_ELI: Device ada0p6.eli created.
GEOM_ELI: Encryption: AES-XTS 128
GEOM_ELI:     Crypto: software




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0MegOs-1Ys1A80zUW-00OIFG>