Re: /proc/cpuinfo verbiage differ unnecessarily between ports...

Jens Axboe (axboe@image.dk)
Thu, 2 Sep 1999 00:29:33 +0200


On Wed, Sep 01 1999, Phillip Ezolt wrote:
> This is not true. There are REAL uses for the call.
>
> I am currently porting an application from Tru64 with behavior that depends on
> the number of CPUs in the system. (For example, How many buffers should I
> allocate?)
>
> Sure. I can write some code to parse /proc/stat or /proc/cpuinfo. Tru64 has
> the sysconf(_SC_NPROCESSORS_CONF) call, and it would be nice if Linux did the
> same. (especially since /proc/ has been known to change...)

Linux does have the sysconf(_SC_NPROCESSORS_CONF)...

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/