From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jan 11 00:40:15 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35F8816A4CE for ; Sun, 11 Jan 2004 00:40:15 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE7C943D2D for ; Sun, 11 Jan 2004 00:40:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0B8eDFR034059 for ; Sun, 11 Jan 2004 00:40:13 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0B8eD6O034058; Sun, 11 Jan 2004 00:40:13 -0800 (PST) (envelope-from gnats) Date: Sun, 11 Jan 2004 00:40:13 -0800 (PST) Message-Id: <200401110840.i0B8eD6O034058@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Eugene Grosbein Subject: Re: ports/56597: bad startup perfomance of mpg123 with pcm/oss/dsp X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eugene Grosbein List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2004 08:40:15 -0000 The following reply was made to PR ports/56597; it has been noted by GNATS. From: Eugene Grosbein To: mh@mpg123.de Cc: bug-followup@freebsd.org Subject: Re: ports/56597: bad startup perfomance of mpg123 with pcm/oss/dsp Date: Sun, 11 Jan 2004 15:37:45 +0700 Hi, Michael Hipp! It's about your excellent audio player mpg123. It plays very well even with old Pentium machine, but version mpg123-0.59r has some simple but annoying (mis-)feature in FreeBSD 4.x: it spends too much time inside audio_capabilities() function that is not neccessary for FreeBSD. Full description of benchmark may be seen here: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/56597 In short: getrusage() shows that it spends 22 seconds (Pentium 90) for useless (in case of FreeBSD) work just before it opens media file. FreeBSD developer responded: > The problem is that mpg123 tries to determine what formats are > supported by the device by simply trying all possible combinations. > This doesn't make much sense in FreeBSD since the kernel will accept > pretty much any format (the only restriction I know of is a 25-Hz > granularity for the sample rate) and if necessary convert the data to > whatever format the device actually supports. Would you like that I dig this case further and produce a path you could review? Or, perhaps, you prefer to fix that yourself? Eugene Grosbein