--performance output disrupted by /proc/cpuinfo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hi, I think there is a bug in the /examples/
I'm using the following script to iterate over a given number of cpu cores with the --performance:
<code>
#!/bin/bash
#start script via "bash yadeBuiltInPerf
# MIN: number of cores to start with
# MAX: maximum number of cores to test
echo "Beginning Yade Performance Test"
BEGIN=$1
END=$2
for (( I=$BEGIN; $I <= $END; I++ )); do
DATE=$(date)
echo $I" core(s); beginning: "$DATE
yade-daily -j$I --performance >> ~/yadelogBuiltI
done
DATE=$(date)
echo "Ende: "$DATE
</code>
But if I look at the yadelogBuiltInP
Instead of showing up at the very end of the file, the CPU info produced by this line of code in checkPerf.py
<code>print "CPU info", os.system('cat /proc/cpuinfo'
disruptes the performance output. I.e. from line 200 to 1031 you'll find CPU info.
I'm using Yade 3+3463+44~precise1 but the source code I looked at was the latest one.
Thanks, Eugen
Changed in yade: | |
status: | New → Won't Fix |
You may look for a way to "flush" to the file since it looks like a buffer problem.
I would not call this a bug in Yade itself, more an unfortunate combination of different things.