Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754105Ab3JaKcQ (ORCPT ); Thu, 31 Oct 2013 06:32:16 -0400 Received: from mail-lb0-f172.google.com ([209.85.217.172]:64113 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975Ab3JaKcO (ORCPT ); Thu, 31 Oct 2013 06:32:14 -0400 MIME-Version: 1.0 In-Reply-To: <20131030202221.047149911@openvz.org> References: <20131030195951.201688764@openvz.org> <20131030202221.047149911@openvz.org> Date: Thu, 31 Oct 2013 13:32:13 +0300 Message-ID: Subject: Re: [patch 1/6] procfs: Introduce sequential fdinfo engine From: Alexey Dobriyan To: Cyrill Gorcunov Cc: Linux Kernel , Pavel Emelyanov , Oleg Nesterov , Andrey Vagin , Al Viro , James Bottomley , "Aneesh Kumar K.V" , Matthew Helsley , "J. Bruce Fields" , Tvrtko Ursulin , Andrew Morton Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 601 Lines: 12 On Wed, Oct 30, 2013 at 10:59 PM, Cyrill Gorcunov wrote: > At moment the fdinfo operations (ie the output from /proc/$pid/fdinfo/$fd) > are generating output in one pass, which makes useless memory pressue > if the reader/user provides a buffer with a small size. cat(1) uses 64 KB buffer. The output doesn't exceed one page anyway. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/