FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 02-21-2011, 09:38 PM
Tavian Barnes
Default Parallelize integrity checks

The following patches add a new _alpm_for_each_cpu() internal API
function, and use it to spread out the workload of integrity checking
deltas and packages over the available CPUs.

I didn't end up dividing the packages by size, because the logic gets
uglier for what is probably marginal benefit. So each thread gets
roughly the same number of packages to check.

It currently uses sysconf(_SC_NPROCESSORS_ONLN) if available to count
the number of CPUs. Support for detecting the number of CPUs on other
platforms should probably be added by people who can test on other
platforms, but the git and x264 source code are both good examples.

Thread Tools

All times are GMT. The time now is 10:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org