From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by kanga.kvack.org (Postfix) with ESMTP id 6771E82F64 for ; Thu, 5 Nov 2015 15:13:16 -0500 (EST) Received: by qkcn129 with SMTP id n129so37698452qkc.1 for ; Thu, 05 Nov 2015 12:13:16 -0800 (PST) Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com. [2607:f8b0:400d:c04::232]) by mx.google.com with ESMTPS id g143si5885672qhc.114.2015.11.05.12.13.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2015 12:13:15 -0800 (PST) Received: by qgeo38 with SMTP id o38so76627105qge.0 for ; Thu, 05 Nov 2015 12:13:15 -0800 (PST) Subject: Re: [PATCH v2 01/13] mm: support madvise(MADV_FREE) References: <1446600367-7976-1-git-send-email-minchan@kernel.org> <1446600367-7976-2-git-send-email-minchan@kernel.org> <56399CA5.8090101@gmail.com> <563A813B.9080903@gmail.com> <20151105181726.GA63566@kernel.org> From: Daniel Micay Message-ID: <563BB855.6020304@gmail.com> Date: Thu, 5 Nov 2015 15:13:09 -0500 MIME-Version: 1.0 In-Reply-To: <20151105181726.GA63566@kernel.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ClqICLLTDgILX9WnJ236tnF4v7NNE29Gh" Sender: owner-linux-mm@kvack.org List-ID: To: Shaohua Li Cc: Andy Lutomirski , Minchan Kim , Hugh Dickins , Andrew Morton , Michael Kerrisk , Michal Hocko , "linux-mm@kvack.org" , KOSAKI Motohiro , "Kirill A. Shutemov" , Rik van Riel , Johannes Weiner , Linux API , Jason Evans , "linux-kernel@vger.kernel.org" , yalin wang , Mel Gorman This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ClqICLLTDgILX9WnJ236tnF4v7NNE29Gh Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable > I posted a patch doing exactly iovec madvise. Doesn't support MADV_FREE= yet > though, but should be easy to do it. >=20 > http://marc.info/?l=3Dlinux-mm&m=3D144615663522661&w=3D2 I think that would be a great way to deal with this. It keeps the nice property of still being able to drop pages in allocations that have been handed out but not yet touched. The allocator just needs to be designed to do lots of purging in one go (i.e. something like an 8:1 active:clean ratio triggers purging and it goes all the way to 16:1). --ClqICLLTDgILX9WnJ236tnF4v7NNE29Gh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWO7hZAAoJEPnnEuWa9fIq5usQAI/qFzkBpBjxnmiLTb8sPPzm OUZp6yZi5bjcreflXXxsvufHbOZ1zqkVFe8JnxGn+Pg1chYSEm4xRUyK/9LCchqR 1Be3avsVfUPJGuiRrHnrY6Qq46Vmk2Iu6HaY8vgkmN/c/qMifY8PgADPQ+RPJ7Du yNkm1kpBoxoYnKu5X2QCfQU6G8TJGCUA+nuqalvNPSqySHAfl5slAXvLJUFc42gg CENG0PWWsPQXbPQGYP3CAuKxMW+hNw7YnG5J2SYyncjnviVfjdoo1aIgINkRokY9 z5CtxU3EEI7B5H8qPWiRe6i/2/JLUMlnixEVsTyh4Nr1yLNYP43jCeH+/+CKIiQK ABOcnjPBfqEiHbzF5V1DOOUbzOBDiM0TonVgfUPhX3+IY7Dbm73d+ErX98fJmPI2 EufQaD6ZN+KcUj8lWR1pBACzC7wUUn86HJYLuHFv3hbmMqVKDlOiV5C7KIpJ0+nD foQeyiwxoIJNiSAkIv/Y764IVrWo6S3z7U8sTHUeF+E3YMnl6uOngySG/Arwiynl PeswqHKYi/LDF2sEYlFGYeQRF+yCQ2cTqiVZcl1mhkDJjhZt2goiY0pzxb36/XZo HKwGEAruCW+aDAt5aXzjylzU6kPkWiuwZh8BBZ/Ya7bMrPcgxV0AqZGWvnTb3m4/ +dwvdZaiiHv8o6jEcXy+ =X40y -----END PGP SIGNATURE----- --ClqICLLTDgILX9WnJ236tnF4v7NNE29Gh-- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org