Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2010 22:30:34 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        freebsd-emulation@freebsd.org
Subject:   futexes and massive malloc(9) use
Message-ID:  <20101214223034.GA3536@freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101214223034.GA3536>