From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 14 22:30:34 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 972EA1065693; Tue, 14 Dec 2010 22:30:34 +0000 (UTC) Date: Tue, 14 Dec 2010 22:30:34 +0000 From: Alexander Best To: freebsd-emulation@freebsd.org Message-ID: <20101214223034.GA3536@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: futexes and massive malloc(9) use X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2010 22:30:34 -0000 hi there, i just stumbled upon the fact that vmstat -m reports a massive amount of malloc(9) requests coming from futexes. for me it's higher than any other type. also every request made is only 128 bytes. these calls seem to be responsible for this: linux_futex.c:193: tmpf = malloc(sizeof(*tmpf), M_FUTEX, M_WAITOK | M_ZERO); linux_futex.c:223: *wp = malloc(sizeof(struct waiting_proc), M_FUTEX_WP, M_WAITOK); the #requests are ~ 5 billion with uptime reporting ~ 3 days. might this be one of the reasons for the performance issues with flash e.g.? cheers. alex -- a13x