From owner-freebsd-questions@FreeBSD.ORG Wed Mar 18 08:01:11 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9387DED9 for ; Wed, 18 Mar 2015 08:01:11 +0000 (UTC) Received: from mout.gmx.com (mout.gmx.com [74.208.4.200]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6FB4AC6A for ; Wed, 18 Mar 2015 08:01:11 +0000 (UTC) Received: from mail.gmx.com ([72.251.118.188]) by mail.gmx.com (mrgmxus002) with ESMTPA (Nemesis) id 0LnOzQ-1ZBKOw2Bpe-00hcNg for ; Wed, 18 Mar 2015 08:56:00 +0100 Date: Tue, 17 Mar 2015 23:56:25 -0800 From: "CK" To: Cc: Subject: thrashing + lost files Reply-To: "CK" X-Mailer: UMail v1.0 Message-ID: <0MegOs-1Ys1A80zUW-00OIFG@mail.gmx.com> X-Provags-ID: V03:K0:POCbI4tg6HmqHrr87UzkWPRZNyY64bJrnLI0496zjQ6KJVXjDfh 44c33yCOlyEw/WqMc6XNqs7XUESKaKyuBfpPcAFFayzIRnuOS0EoOZbdbOOZ0Pray/E2wCW bbWs3hxN/PMAKUq4y74bh/NPtTPGz0yKUA+7WR37ofgoNSQIabuYpbIf2qqy4+rZo5bsqyS c6z2q7si9p34bA5MqeI1g== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2015 08:01:11 -0000 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 VIA Padlock Features=0xdd real memory = 536870912 (512 MB) avail memory = 482779136 (460 MB) cryptosoft0: on motherboard padlock0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1def0000 (3) failed cpu0: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: 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: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 agp0: aperture size is 64M pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xe4000000-0xe7ffffff,0xe8000000-0xe8ffffff irq 11 at device 0.0 on pci1 drm0: on vgapci0 info: [drm] AGP at 0xe0000000 64MB info: [drm] Initialized via 2.11.1 20070202 uhci0: port 0xd000-0xd01f irq 11 at device 16.0 on pci0 usbus0 on uhci0 uhci1: port 0xd400-0xd41f irq 3 at device 16.1 on pci0 usbus1 on uhci1 uhci2: port 0xd800-0xd81f irq 10 at device 16.2 on pci0 usbus2 on uhci2 ehci0: mem 0xea000000-0xea0000ff irq 5 at device 16.3 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci0 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xdc00-0xdc0f at device 17.1 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 pcm0: port 0xe000-0xe0ff irq 10 at device 17.5 on pci0 pcm0: pcm0: uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 orm0: at iomem 0xd0000-0xd7fff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 acpi_throttle0: 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: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: 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: 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: 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: at usbus3 umass0: on usbus3 da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 30436MB (62333952 512 byte sectors: 255H 63S/T 3880C) da0: quirks=0x2 cd0 at ata1 bus 0 scbus1 target 0 lun 0 cd0: 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