You are not logged in.
Pages: 1
Hi everyone,
I have that problem for a few months now and am getting tired of it, and I have no idea what could be causing this issue =/
Since the last few months, the disk IO seems to stop working for a few minutes from time to time. Anything that tries to access the disk in that time just freeze as well, which seems to be everything except X. When it happens, it's usually when I hit save in a program, then the program hangs there and stops responding. Then I try to switch to another task, like the browser, then as soon as I requires disk access it freezes too! Then if I try to reopen any window the whole desktop freezes, just the mouse moving around and a few apps. After a while, say a minute or two, everything gets back to the normal.
All I get during the freezes is the hard disk led fully lit and nothing else. I don't seem to hear the disk actually doing anything too. The hard drive is not faulty, I changed it last week to replace my old one that did this too (I first thought it was because of my bad sectors on my disk, so I changed the disk).
Nothing really interesting from dmesg (remounts are probably during boot):
[ 13.908964] wlan0: associated
[ 13.915849] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 538.886885] EXT4-fs (sda5): re-mounted. Opts: commit=0
[ 539.152937] EXT4-fs (sda7): re-mounted. Opts: commit=0
[ 616.592347] delay: estimated 90, actual 1
[ 636.849748] delay: estimated 89, actual 0
[ 641.624213] delay: estimated 90, actual 1
[ 646.838514] delay: estimated 89, actual 0
[ 661.041905] delay: estimated 89, actual 0
[ 680.443599] delay: estimated 89, actual 0
[ 724.741210] delay: estimated 90, actual 1
[ 748.621442] delay: estimated 90, actual 1
[ 5402.520295] fuse init (API version 7.18)
[ 7669.325002] delay: estimated 89, actual 0The "delay: ..." lines does not appear after the hang, I had one, did a dmesg, had another one, and nothing more to the logs.
Both stock and PF kernels do it. I did a fresh install after changing the drive, so most config files are stock too. Computer is a shitty System76 laptop (gazp5).
Funny enough, my Windows 8 install doesn't seem to suffer from this (but haven't used it for more than 2 hours, gaming OS only).
I'm really out of ideas, where should I look? Is there any test I can run to isolate the bug?
Last edited by Max-P (2012-12-18 03:16:28)
Offline
Hi Max,
I had the same problems since March until about a month ago. I tried anything I could think of, but couldn't find any reason as of why the IO hangs. In the end I decided to replace the hard drive. I boot up Arch install image from usb and attached another hdd to usb. I copied all the data using dd to the new one and then I decided to give it one last try. To my great surprise, the hangs never appeared since then.
I have no idea of what happened there, but I still use the old drive (I returned the new one) and it just works. The best explanation I ever got from one of the IT support guys in our company was that "the old disk started to behave correctly out of fear of being thrown away" ![]()
Offline
Hi Max,
I had the same problems since March until about a month ago. I tried anything I could think of, but couldn't find any reason as of why the IO hangs. In the end I decided to replace the hard drive. I boot up Arch install image from usb and attached another hdd to usb. I copied all the data using dd to the new one and then I decided to give it one last try. To my great surprise, the hangs never appeared since then.
I have no idea of what happened there, but I still use the old drive (I returned the new one) and it just works. The best explanation I ever got from one of the IT support guys in our company was that "the old disk started to behave correctly out of fear of being thrown away"
Thanks for your answer. Sadly, didn't work for me. Even rewrited everything with the "badblocks" program and recopied the partitions from an USB drive like you did (moved from btrfs back to ext4 at the same time, to make sure it's not the fs that was faulty).
What fixed yours is probably that rewriting made the disk relocate its bad blocks. My old drive really had a bunch of badblocks, so I needed to change soon anyways (when you run parted and you have a whole log of SATA errors just printing the partition table...)
Any debugging option I could add somewhere to see what happens at low level?
Offline
Ok, I'd like to bump that topic, because it still happens a lot. It's really annoying, my system don't even use half of the RAM so it's not supposed to be swapping. I even disabled the swap completely, and it still does it. Sigh.
I need to figure out what type of IO makes it do that. It seems to happen a lot with Photoshop (or any heavy Wine disk IO I think). VirtualBox also seems to make it happen more often. Chromium triggers that behavior after a while too. For example, I open two heavy tabs (say, Facebook, Google+ and Twitter), that the system freezes for a few seconds. Sometimes the cursor completely stops moving. Sometime even my radio player that never do any disk IO (plays the stream from the web) stops playing for 2-3 seconds.
In fact, I'm not even sure if it's really the IO. It seems to be that (the HDD led it on), and it happens on IO-heavy operations. All I know, the bug survived accross a full reinstall, new HDD (with some SSD cache in it), a DE change (KDE->XFCE), kernel changes (2.6.x up to 3.6, stock and pf), Also tried changins the IO scheduler from bfq/cfq to noop (that's the only one available for some reasons), also changed the fs from btrfs to ext4.
Any idea of things I should watch for that, logs or anything? I really want to fix that ![]()
Thanks!
Offline
Does the drive support SMART ? If so, you might install some SMART tools and see what the drive's diagnostics have to say.
Also, watch your I/O with a tool such as iotop and see if that provides any clues.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Here the SMART status. The drive is new, and the old one did exactly the same thing, however.
max-p@max-p-arch76 ~ % sudo smartctl -A /dev/sda
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.6-pf] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 111 099 006 Pre-fail Always - 36817984
3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 187
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 075 060 030 Pre-fail Always - 38641364
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1426
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 189
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 253 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 051 044 045 Old_age Always In_the_past 49 (0 17 49 22 0)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 22
193 Load_Cycle_Count 0x0032 079 079 000 Old_age Always - 42832
194 Temperature_Celsius 0x0022 049 056 000 Old_age Always - 49 (0 18 0 0 0)
195 Hardware_ECC_Recovered 0x001a 034 031 000 Old_age Always - 36817984
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
254 Free_Fall_Sensor 0x0032 100 100 000 Old_age Always - 0There seem to be an abusive error rate there...
I tried iotop, top and htop, but they are either not fast enough, inaccessible (because I can't make their window visible because of WM freeze), or they never refresh until everything unfreeze. It's from a few seconds to minutes, depend of many things, maybe including uptime, I don't know. I can be a whole week without any trouble, then a day I want to throw that pile of s***y computer through the window ![]()
Offline
Um, yeah....
For comparison:
ewaller@odin:~ 1002 %sudo smartctl -A /dev/sda
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.6.3-1-ARCH] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 17
3 Spin_Up_Time 0x0027 187 184 021 Pre-fail Always - 1625
4 Start_Stop_Count 0x0032 096 096 000 Old_age Always - 4082
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002f 100 253 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 064 064 000 Old_age Always - 26947
10 Spin_Retry_Count 0x0033 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 1065
187 Reported_Uncorrect 0x0032 100 093 000 Old_age Always - 7
188 Command_Timeout 0x0032 100 089 000 Old_age Always - 8590065704
190 Airflow_Temperature_Cel 0x0022 045 025 040 Old_age Always In_the_past 55
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 300
193 Load_Cycle_Count 0x0032 096 096 000 Old_age Always - 312396
194 Temperature_Celsius 0x0022 092 072 000 Old_age Always - 55
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0
ewaller@odin:~ 1003 %Your numbers look terrible. You mentioned code 7. Look at codes 7 and 195; those are really bad too.
Your system is spending a lot of time hung up waiting for the drive. I bet the output of dmesg has something to say about this. So will your logs (initscripts) or journal (systemd)
You said you changed your drive already. Is this a laptop or desktop? What is the interface (SATA, PATA, SCSI, ATA)?
Have you considered that it could be the controller?
Cables?
The Power Supply?
Are there multiple drives on a chain?
Edit: BTW, this drive is about 4 years old and runs almost continuously. In a laptop.
Last edited by ewaller (2012-10-26 02:51:40)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Well, thanks a lot, we are probably on something.
It's a SATA drive I think, in a laptop. dmesg says nothing. The journal looks quite long, what do you want me to get from it? (Or I can put that on my server and send a link too).
My drive is about 3 months old now, runs a lot too.
I really suspect it could be the controller that messes everything up, but in the other hand Windows seems to handle it correctly. What's funny is that it's an Ubuntu laptop, it should be supported nicely on Linux, but it looks like not. I heard it could also be a kernel bug related to too many events and the queue getting full, resulting in hangs.
That's the (only) internal drive of the laptop, I think the drive fits directly on the motherboard or really close to (the drive bay is under and fits directly into the port, there are no cables). As of power supply, since it's a laptop, it should be good.
So, how do I get the systemd journal?
Offline
...So, how do I get the systemd journal?
sudo journalctlOffline
Max-P wrote:...So, how do I get the systemd journal?
sudo journalctl
Thanks, I had the command but it opened in "less" or "more", the scrolling thing in the terminal. I thought there where a command to dump it, but I got it.
http://waku.max-p.fr.nf/temp2/journal.txt
There it is, I don't see anything suspect for now, but I don't know what to search for in that.
I see there are a few days in that, it happened yesterday and today. Like 1hour before my bump.
Also, it seems to be an SCSI controller, if I read that log correctly ![]()
EDIT: Here's a probaly useless video I made a few weeks ago with my cell-phone that shows how the computer looks: http://waku.max-p.fr.nf/temp2/VID_20120918_162556.mp4
It usually lasts only a few seconds (just enough to be annoying), but this time it took really a few minutes. In fact I think I had to hard reset it, The part with the deadly blinking cursor is vt3, where systemd would normally load the login prompt (but it can't, the I/O is frozen!). Probably has no use, but it shows how the computer feels ![]()
Last edited by Max-P (2012-10-26 05:59:19)
Offline
Bump!
What ewaller noticed is right, there's really a huge problem with #1, #7 and #195
Just printed the stats again today, and...
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 118 099 006 Pre-fail Always - 175012328
3 Spin_Up_Time 0x0003 098 098 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 193
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 075 060 030 Pre-fail Always - 40970619
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1490
195 Hardware_ECC_Recovered 0x001a 035 031 000 Old_age Always - 175012328So, I guess I just can't do anything about it if it's the controller that's faulty?
Offline
Yet another bump!
Could it be related to USB? I have been playing around with JACK lately, and when used on my USB sound card, low latency (on both stock and pf kernel) made the OS crash (instead of the expected cracking sound).
But not only that, this morning it froze for ~20 seconds every minute or so, so I ran dmesg and got this
... thousands of these lines ...
[ 1194.854698] 3:1:1: usb_set_interface failed (-32)
[ 1194.854956] 3:1:1: usb_set_interface failed (-32)
[ 1194.855227] 3:1:1: usb_set_interface failed (-32)
[ 1194.855589] 3:1:1: usb_set_interface failed (-32)
[ 1194.855956] 3:1:1: usb_set_interface failed (-32)
[ 1194.856835] 3:1:1: usb_set_interface failed (-32)
[ 1194.857132] 3:1:1: usb_set_interface failed (-32)
[ 1194.857469] 3:1:1: usb_set_interface failed (-32)
[ 1194.857965] 3:1:1: usb_set_interface failed (-32)
[ 1194.858333] 3:1:1: usb_set_interface failed (-32)
[ 1195.182631] 3:2:1: usb_set_interface failed (-32)
[ 1197.702343] 3:2:1: usb_set_interface failed (-32)
[ 1200.218836] 3:2:1: usb_set_interface failed (-32)
[ 1202.737672] 3:2:1: usb_set_interface failed (-32)
[ 1205.258089] 3:2:1: usb_set_interface failed (-32)
[ 1207.785699] 3:2:1: usb_set_interface failed (-32)
[ 1210.299570] 3:2:1: usb_set_interface failed (-32)
[ 1212.844812] 3:2:1: usb_set_interface failed (-32)
[ 1215.372689] 3:2:1: usb_set_interface failed (-32)
[ 1216.141178] usb 4-1.2: USB disconnect, device number 3
[ 1221.947476] usb 4-1.2: new full-speed USB device number 6 using ehci_hcd
[ 1222.035561] input: HID 041e:30d3 as /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1.2/4-1.2:1.3/input/input19
[ 1222.035632] hid-generic 0003:041E:30D3.0006: input,hidraw2: USB HID v1.00 Device [HID 041e:30d3] on usb-0000:00:1d.0-1.2/input3It stopped doing that when I unplugged my USB hard drive (which is powered off anyway, so it shouldn't interfere at all, doesn't it?). All seems fine for now, but until when? I know my JACK freeze printed a lot of SATA errors in dmesg "reset link 1,5 Gbps" or something like that (actually couldn't write the logs to an unavailable disk, obviously), it was like most of the peripherals were disconnected from the motherboard at the same time (USB, Keyboard, Mouse, SCSI/SATA, USB). I really think it could be related.
Here's /proc/interrupts, probably useless but I saw something about that when looking to fix my JACK issue to check the priorities or something (but really I don't care about JACK I was just playing around with it, but that + the above log seems to tell me something is wrong with USB and that could be the cause of all that crap)
max-p@max-p-arch76 ~ % cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7
0: 128 0 0 0 0 0 0 0 IO-APIC-edge timer
1: 9718 0 0 0 0 0 0 0 IO-APIC-edge i8042
8: 1 0 0 0 0 0 0 0 IO-APIC-edge rtc0
9: 597 0 0 0 0 0 0 0 IO-APIC-fasteoi acpi
12: 3355 0 0 0 0 0 0 0 IO-APIC-edge i8042
16: 68442 0 0 0 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb1, nvidia
17: 234 0 0 0 0 0 0 0 IO-APIC-fasteoi snd_hda_intel
18: 0 0 0 0 0 0 0 0 IO-APIC-fasteoi jmb38x_ms:slot0, mmc0
19: 2 0 0 0 0 0 0 0 IO-APIC-fasteoi firewire_ohci
23: 797924 0 0 0 0 0 0 0 IO-APIC-fasteoi ehci_hcd:usb4
40: 0 0 0 0 0 0 0 0 PCI-MSI-edge PCIe PME
41: 0 0 0 0 0 0 0 0 PCI-MSI-edge PCIe PME
42: 0 0 0 0 0 0 0 0 PCI-MSI-edge PCIe PME
43: 0 0 0 0 0 0 0 0 PCI-MSI-edge PCIe PME
44: 0 0 0 0 0 0 0 0 PCI-MSI-edge PCIe PME
45: 1 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
46: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
47: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
48: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
49: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
50: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
51: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
52: 0 0 0 0 0 0 0 0 PCI-MSI-edge xhci_hcd
53: 96888 0 0 0 0 0 0 0 PCI-MSI-edge ahci
54: 14 0 0 0 0 0 0 0 PCI-MSI-edge mei
55: 142442 0 0 0 0 0 0 0 PCI-MSI-edge iwlwifi
56: 1537 0 0 0 0 0 0 0 PCI-MSI-edge snd_hda_intel
57: 1 0 0 0 0 0 0 0 PCI-MSI-edge eth0
NMI: 431 416 178 61 74 31 16 11 Non-maskable interrupts
LOC: 803363 696433 394433 147681 160095 62741 37376 28623 Local timer interrupts
SPU: 0 0 0 0 0 0 0 0 Spurious interrupts
PMI: 431 416 178 61 74 31 16 11 Performance monitoring interrupts
IWI: 0 0 0 0 0 0 0 0 IRQ work interrupts
RTR: 0 1 1 1 1 1 1 0 APIC ICR read retries
RES: 12986 14057 12313 12781 13143 11993 11797 11285 Rescheduling interrupts
CAL: 59316 54086 43957 33670 35239 26583 21735 18540 Function call interrupts
TLB: 0 0 0 0 0 0 0 0 TLB shootdowns
TRM: 0 0 0 0 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 0 0 0 0 Machine check exceptions
MCP: 12 12 12 12 12 12 12 12 Machine check polls
ERR: 0
MIS: 0Hopefully, someone can help me figure all this out ![]()
Maybe I should ask in another forum or mailing list?
Thanks
Offline
Well, I'm just making a best guess...
First - Make sure you don't have support from System 76. If you do then ask them.
Second - Look for BIOS updates. Even if there is non, reset the BIOS configs to default. Then reconfigure them
Third - Go into BIOS and disable all hardware that you don't need to boot. Unplug all devices from your system USB, bla, bla
Forth - Make a backup of your system with tar like useing my script http://myrelay.net/Public/Scripts/backup.sh
(I don't like Ubuntu) try installing Ubuntu and see if you have the same problem. If not...
Then >>
Then do a clean, step by step reinstall of Arch Linux. Checking for problems each step of the way.
All clean, don't use any old /etc/configs. Just rewrite them
Esle if you still get the same errors then, ya... I looks like a controller problem.
Last edited by hunterthomson (2012-11-06 07:01:29)
OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec
Offline
On my desktop hardware setup (see below), when I installed an SSD I had to add "libata.force=noncq" to the kernel command line options. The drive was behaving erratically (lots of I/O errors) before I did that. Can't remember where I read that tip, but jus' passing it on in case you suffer similarly.
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | ThinkPad X1 | ASUS ux303ua | Surface Laptop 2 | Minisforum UM780
Offline
12309 ?
Offline
Post your fstab.
Edit: And does the same thing happen with linux-lts?
Last edited by DSpider (2012-11-06 10:07:04)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
max-p@max-p-arch76 ~ % cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda5 / ext4 defaults 0 1
/dev/sda6 swap swap defaults 0 0
/dev/sda7 /home ext4 defaults 0 1It probably does on linux-lts too, it does this even since 2.6, but I haven't tried it. I will try that soon, this is quite random, and I don't know what triggers it.
I'm currently trying sultanoswing's solution, then I will try linux-lts just to see, and then Ubuntu, if that's the only solution. But if I remember correctly, even Ubuntu annoyed me with that bug, I'd say the bug always was there. I thought it was the was for a long time, as it happens quite often when Linux uses swap or any heavy disk IO. But not always, just some times.
EDIT: sultanoswing 's solution doesn't work, no change at all. Still hangs.
EDIT 3: There are so many things plain wrong with this computer. My USB sound card caused a lot of problems, but it continues to happen.
Last edited by Max-P (2012-12-18 03:17:22)
Offline
Pages: 1