From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12277 invoked by alias); 21 Mar 2014 11:27:46 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 12248 invoked by uid 48); 21 Mar 2014 11:27:42 -0000 From: "dancol at dancol dot org" To: glibc-bugs@sourceware.org Subject: [Bug stdio/16734] New: fopen calls mmap to allocate its buffer Date: Fri, 21 Mar 2014 11:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dancol at dancol dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg00143.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16734 Bug ID: 16734 Summary: fopen calls mmap to allocate its buffer Product: glibc Version: 2.21 Status: NEW Severity: normal Priority: P2 Component: stdio Assignee: unassigned at sourceware dot org Reporter: dancol at dancol dot org ALLOC_BUF in libioP.h unconditionally opens IO streams using mmap. That's silly and quite inefficient, especially for Emacs, which (via GTK) ends up calling mmap several times per user interaction. The message linked below summarizes the problems with the mmap approach and proposes a patch for using the standard allocator. Can we please revisit this issue? https://sourceware.org/ml/libc-alpha/2006-11/msg00061.html -- You are receiving this mail because: You are on the CC list for the bug.