[Assorted-commits] SF.net SVN: assorted: [419] numa-bench/trunk/src/malloc.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-15 01:44:38
|
Revision: 419 http://assorted.svn.sourceforge.net/assorted/?rev=419&view=rev Author: yangzhang Date: 2008-02-14 17:44:42 -0800 (Thu, 14 Feb 2008) Log Message: ----------- cleaned up content Modified Paths: -------------- numa-bench/trunk/src/malloc.cc Modified: numa-bench/trunk/src/malloc.cc =================================================================== --- numa-bench/trunk/src/malloc.cc 2008-02-15 01:44:23 UTC (rev 418) +++ numa-bench/trunk/src/malloc.cc 2008-02-15 01:44:42 UTC (rev 419) @@ -1,24 +1,3 @@ -// Questions this program answers: -// -// - Does malloc tend to allocate locally? -// - TODO! -// - How much does working from another node affect throughput? -// - A bit: 647x from local, 649x from neighbor, 651x from remote -// - Is there difference from repeatedly fetching the same (large) area n times -// vs. fetching an area n times larger? -// - No. The times are identical for 1GB*1 and 100MB*10. -// - How much difference is there between sequential scan and random access? -// - Huge difference. Also magnifies the locality effects more. -// - 1700 from local, 1990 from one neighbor, 2020 from another neighbor, -// and 2310 from remote. -// - What's the difference between reading and writing? -// - TODO! -// - Can we observe prefetching's effects? (Random access but chew the full -// cache line of data.) -// - TODO! - -// TODO: use real shuffling? or is rand ok? - #include <cstdlib> #include <fstream> #include <iostream> @@ -171,6 +150,8 @@ } int barrier_result = pthread_barrier_wait(&cross_barrier); check(barrier_result == PTHREAD_BARRIER_SERIAL_THREAD || barrier_result == 0); + // TODO: make this more interesting than just a sequential traversal over + // the partitions. for (int i = 0; i < config.ncores; i++) { chew1(partitions[i][cpu], config, len); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |