Date: Mon, 09 Feb 2015 08:41:42 -0800 From: Rui Paulo <rpaulo@me.com> To: John Baldwin <jhb@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Rui Paulo <rpaulo@freebsd.org> Subject: Re: svn commit: r278433 - in head: . contrib/xz contrib/xz/src/common contrib/xz/src/liblzma contrib/xz/src/liblzma/api contrib/xz/src/liblzma/api/lzma contrib/xz/src/liblzma/check contrib/xz/src/liblz... Message-ID: <663179A3-95DD-4BC2-B645-1187CCF0DAA3@me.com> In-Reply-To: <46013627.EoFa6fsn0l@ralph.baldwin.cx> References: <201502090620.t196KZSk040702@svn.freebsd.org> <46013627.EoFa6fsn0l@ralph.baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 9, 2015, at 08:16, John Baldwin <jhb@freebsd.org> wrote: >=20 > On Monday, February 09, 2015 06:20:35 AM Rui Paulo wrote: >> Author: rpaulo >> Date: Mon Feb 9 06:20:34 2015 >> New Revision: 278433 >> URL: https://svnweb.freebsd.org/changeset/base/278433 >>=20 >> Log: >> Merge xz 5.2.0. >>=20 >> This brings support for multi-threaded compression. This brings = close >> N times faster compression where N is the number of CPU cores. >> Because of this, liblzma now depends on libthr. >>=20 >> Soon libarchive will be modified to use the new lzma API. >>=20 >> Thanks to antoine@ for the exp-run. >=20 > It looks like this uses hw.ncpu to determine the number of cores. Can = you=20 > make this cpuset friendly by querying the current process's CPU mask = and=20 > counting the cores it contains instead? >=20 > Somethign like: >=20 > cpuset_t set; >=20 > cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1, &set, = sizeof(set)); >=20 > (I have a CPU_COUNT() macro I should commit that will then let you = do:) >=20 > ncpus =3D CPU_COUNT(&set); Yes, makes sense. I'll wait for CPU_COUNT(). -- Rui Paulo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?663179A3-95DD-4BC2-B645-1187CCF0DAA3>