From owner-freebsd-fs@freebsd.org Sat Aug 8 21:28:41 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8138F9B6D40 for ; Sat, 8 Aug 2015 21:28:41 +0000 (UTC) (envelope-from rpokala@panasas.com) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0095.outbound.protection.outlook.com [65.55.169.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E72E710A0; Sat, 8 Aug 2015 21:28:40 +0000 (UTC) (envelope-from rpokala@panasas.com) Received: from CY1PR08MB1803.namprd08.prod.outlook.com (10.162.218.25) by CY1PR08MB1802.namprd08.prod.outlook.com (10.162.218.24) with Microsoft SMTP Server (TLS) id 15.1.225.19; Sat, 8 Aug 2015 21:28:31 +0000 Received: from CY1PR08MB1803.namprd08.prod.outlook.com ([10.162.218.25]) by CY1PR08MB1803.namprd08.prod.outlook.com ([10.162.218.25]) with mapi id 15.01.0225.018; Sat, 8 Aug 2015 21:28:30 +0000 From: "Pokala, Ravi" To: "freebsd-fs@freebsd.org" , "kostikbel@gmail.com" , "wjw@digiware.nl" , "cem@freebsd.org" Subject: Re: freebsd-fs Digest, Vol 630, Issue 5 Thread-Topic: freebsd-fs Digest, Vol 630, Issue 5 Thread-Index: AQHQ0dHRmJ09FWlQake+sJdwGAG7Up4CKX2A Date: Sat, 8 Aug 2015 21:28:29 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.3.150624 authentication-results: spf=none (sender IP is ) smtp.mailfrom=rpokala@panasas.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [24.6.178.251] x-microsoft-exchange-diagnostics: 1; CY1PR08MB1802; 5:xVCHkO8SmUXJKMaz6ejfKdD9tOKH+wT+xsFYxgBLmKx+tgLV6HdQmbLfXsH+Y3+0EyI2kdBaw7LWZbqeG6sPNKHXeqVsjcI32/ZDjz1H9mWDY/3Af1w0yrwfq6BqbaCArtUqhAqDz/Enywyxy6id6A==; 24:ARzMeyUWJ1cYRq+0xbx3fKL+ifiGJgi7+NbSNSej83++rrS+a27eO8S09W+xqlsSDLMq3JHW7oRlkFyIDVIRA1hTZ3VLrAYxjaka4I6P7r0=; 20:uLRdW0OIFJxdpBkGyML8/78RAFz33Js5E4jnDVoDuJMfFIJHsJ0OHz/ljM72bjDDtCS1/AH0UmX26tFPjY+fVA== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR08MB1802; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR08MB1802; BCL:0; PCL:0; RULEID:; SRVR:CY1PR08MB1802; x-forefront-prvs: 06628F7CA4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(18543002)(189002)(5403001)(199003)(10533003)(2501003)(106356001)(99286002)(19580395003)(106116001)(92566002)(76176999)(46102003)(105586002)(2201001)(101416001)(2900100001)(50986999)(10400500002)(54356999)(4001540100001)(77096005)(2950100001)(68736005)(2656002)(64706001)(87936001)(19580405001)(66066001)(97736004)(102836002)(36756003)(4001350100001)(189998001)(83506001)(5001830100001)(77156002)(86362001)(5001960100002)(5002640100001)(122556002)(40100003)(5001860100001)(107886002)(62966003)(5001770100001)(81156007); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR08MB1802; H:CY1PR08MB1803.namprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: panasas.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <96C3C6D50A992044ACF41F89917CE4FD@namprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: panasas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Aug 2015 21:28:29.7814 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: acf01c9d-c699-42af-bdbb-44bf582e60b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR08MB1802 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Aug 2015 21:28:41 -0000 >Date: Sat, 8 Aug 2015 14:41:07 +0300 >From: Konstantin Belousov >To: Willem Jan Withagen >Cc: fs@freebsd.org >Subject: Re: Using SSDs as swap >Message-ID: <20150808114107.GD2072@kib.kiev.ua> >Content-Type: text/plain; charset=3Dus-ascii > >>=20 >> Speaking about blocks.... Does Swap take into account that disks could >>be of a sectorsize other than 512 bytes. I would guess so, since we >>could have a 4K disk as swap disk, and doing read-modify-write for swap >>is sure going to kill performance. >swap performs i/o in the page-sized chunks at least, which are min 4k on >all supported platforms (even on arms, where we do not support smaller >pages AFAIK). I can confirm this first-hand - I have systems which use AF-4Kn drives for swap, without any problems. HOWEVER, there is a different - but related - snag. Frequently, the same device is used for both swap and vmcores. While swapping (aka paging) is done in 4KB chunks, some structures used in dumping core are always 512B. This does not work well on AF-4Kn drives. [PR 194279] discusses the problem. cem@ did some work on the dump path "recently" (yikes - according to the bug, it was close to a year ago!) -Ravi