From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f176.google.com ([209.85.223.176]:36107 "EHLO mail-io0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932072AbbJ0NbI (ORCPT ); Tue, 27 Oct 2015 09:31:08 -0400 Received: by ioll68 with SMTP id l68so222271307iol.3 for ; Tue, 27 Oct 2015 06:31:08 -0700 (PDT) Subject: Re: Bad fs performance, IO freezes To: Henk Slager , "cheater00 ." References: <562E37F4.9080602@oracle.com> <562F638B.1040701@gmail.com> Cc: Btrfs BTRFS From: Austin S Hemmelgarn Message-ID: <562F7C7B.6060408@gmail.com> Date: Tue, 27 Oct 2015 09:30:35 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms040905060308070402050402" Sender: linux-btrfs-owner@vger.kernel.org List-ID: This is a cryptographically signed message in MIME format. --------------ms040905060308070402050402 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-10-27 09:00, Henk Slager wrote: > I don't have a lot experience with autodefrag, but as indicated by > Austin, expect a lot of full rewrites of files that are relatively > slowly filled up by a torrent client, starting with a sparse file. So > 1st advice would be to remove this option and run it as crontask at > particular times. > > What SATA-USB bridge is between the harddisk and the PC motherboard ? I hadn't thought of this, but the specific adapter being used for the=20 disk can have a lot of impact on how it preforms. I've personally had=20 lots of issues with JMicron chipsets (ranging from latency issues like=20 what you are seeing to sever data corruption), but have found that=20 ASMedia ones tend to be pretty much rock solid reliable and have good=20 performance (although I think they only do USB 3.0 adapters). > Also what USB host chipset is on the PC motherboard ? If it's a Intel motherboard, the USB 2.0 ports are probably routed=20 through on-board hubs to the ports provided by whatever Intel calls=20 their equivalent of the south bridge these days, and the USB 3.0 ports=20 are probably a mix of Intel and ASMedia XHCI controllers (ASMedia was=20 one of the first companies to do an inexpensive standalone XHCI chip, so = they're relatively popular for extra USB 3.0 ports). FWIW, the first=20 generation of Intel XHCI chips had some issues with older Linux kernels, = although IIRC those issues were along the lines of a port just=20 disappearing after disconnecting whatever was connected to it. > Why don't you run 64-bit Ubuntu on this core i7 ? 64 versus 32 bit shouldn't cause anything like this to happen (although, = if it can be proven that it does, then that is a serious bug that needs=20 to be fixed). That said, unless you have some desperate need to be=20 running 32-bit only, you should seriously look into updating to a 64-bit = version, your whole system should run faster, and Ubuntu has really good = 32-bit compatibility in the 64-bit version (which is part of why it's=20 popular as a support target for third party software like Steam). > > > On Tue, Oct 27, 2015 at 12:44 PM, Austin S Hemmelgarn > wrote: >> On 2015-10-26 22:00, cheater00 . wrote: >>> >>> Hello, >>> currently my computer freezes every several seconds for half a second= >>> or so. Using it feels like I'm playing musical chairs with the kernel= =2E >>> I have just one download happening on utorrent right now - this is >>> what the graph looks like: >>> http://i.imgur.com/LqhMtrJ.png >>> and every time a new spike happens, a freeze happens just before >>> that... that's the only time those freezes happen, too. >>> >> Do you have the 'autodefrag' mount option enabled? If it is turned on= , then >> that may be the problem. Most bittorrent clients pre-allocate the spa= ce for >> a download, then write each block directly into the location it's supp= osed >> to be in the resultant download, which means depending on how it's >> pre-allocating the space, that you end up with a large number of rando= mly >> ordered writes into a single file, which in turn will trigger the auto= defrag >> code, which can cause latency spikes when you're also hitting the disk= at >> the same time. --------------ms040905060308070402050402 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC Brgwgga0MIIEnKADAgECAgMRLfgwDQYJKoZIhvcNAQENBQAweTEQMA4GA1UEChMHUm9vdCBD QTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNp Z25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3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