Re: [PATCH] pack-objects: Add runtime detection of online CPU's

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Ericsson <ae@...>
Cc: Git Mailing List <git@...>, Junio C Hamano <gitster@...>, Nicolas Pitre <nico@...>
Date: Tuesday, February 12, 2008 - 7:18 am

Hi,

On Feb 12, 2008 9:20 AM, Andreas Ericsson <ae@op5.se> wrote:
I can't find the right pointer, but for linux it would be more usable
to use sched_getaffinity(). Than you can do thinks like this:

$ taskset 0x3 git gc ...

and you will get 2 cpus, even 4 are online.

Bert
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] pack-objects: Add runtime detection of online CPU's, Andreas Ericsson, (Tue Feb 12, 4:20 am)
Re: [PATCH] pack-objects: Add runtime detection of online CP..., Michael Hendricks, (Tue Feb 12, 10:52 am)
Re: [PATCH] pack-objects: Add runtime detection of online CP..., Bert Wesarg, (Tue Feb 12, 7:18 am)