On Apr 24, 2007, at 8:07 AM, Bert Wesarg wrote:
>> /sys % sudo tar cjf /tmp/cpu-topology.tar.bz2 devices/system/{cpu/
>> cpu*/topology/*,node/node*/cpu*}
>> tar: devices/system/node/node0/cpumap: File shrank by 4093 bytes;
>> padding with zeros
>> tar: Error exit delayed from previous errors
>>
>> Hmm. Got any ideas?
> I think, because there is no topology dir in older kernel. from
> this type
> of machines i have two racks full of it but with the same old kernel.
Look a little closer at that message -- the file node0/cpumap *is*
there, but tar is getting weird data from it (it expects 4096 bytes
but only gets 3). Here's the output I had later in my mail:
>> /sys/devices/system/node/node0 % cat cpumap
>> ff
It corresponds to the 3 bytes that tar assumedly was able to get (2
f's + \n).
So I'm not sure that tar'ing up these directories will work as
expected -- even with a kernel that provides all the information that
we're looking for.
> And
> sudo should't be needed.
Right; I just do it out of habit to ensure to grab everything. :-)
--
Jeff Squyres
Cisco Systems
|