[Barrelfish-users] questions about phoenix kmeans
Liyang
tangliyang921 at gmail.com
Sat Dec 24 03:23:33 CET 2011
Dear all,
I've read the kmeans code here:
http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c. I
wonder if you maintain the code, but I don't know who else to contact.
I do have some questions about using phoenix in kmeans.
map_reduce_args
<http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args>.L1_cache_size
<http://www.lingrok.org/source/s?defs=L1_cache_size&project=barrelfish>
= atoi <http://www.lingrok.org/source/s?defs=atoi&project=barrelfish>(GETENV
<http://www.lingrok.org/source/s?defs=GETENV&project=barrelfish>("MR_L1CACHESIZE"));//1024
* 8;map_reduce_args
<http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args>.num_map_threads
<http://www.lingrok.org/source/s?defs=num_map_threads&project=barrelfish>
= atoi <http://www.lingrok.org/source/s?defs=atoi&project=barrelfish>(GETENV
<http://www.lingrok.org/source/s?defs=GETENV&project=barrelfish>("MR_NUMTHREADS"));//8;map_reduce_args
<http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args>.num_reduce_threads
<http://www.lingrok.org/source/s?defs=num_reduce_threads&project=barrelfish>
= atoi <http://www.lingrok.org/source/s?defs=atoi&project=barrelfish>(GETENV
<http://www.lingrok.org/source/s?defs=GETENV&project=barrelfish>("MR_NUMTHREADS"));//16;map_reduce_args
<http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args>.num_merge_threads
<http://www.lingrok.org/source/s?defs=num_merge_threads&project=barrelfish>
= atoi <http://www.lingrok.org/source/s?defs=atoi&project=barrelfish>(GETENV
<http://www.lingrok.org/source/s?defs=GETENV&project=barrelfish>("MR_NUMTHREADS"));//8;map_reduce_args
<http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args>.num_procs
<http://www.lingrok.org/source/s?defs=num_procs&project=barrelfish> =
atoi <http://www.lingrok.org/source/s?defs=atoi&project=barrelfish>(GETENV
<http://www.lingrok.org/source/s?defs=GETENV&project=barrelfish>("MR_NUMPROCS"));//16;
How could the above codes get the values for args? I mean, where are those
MR_ environment variables defined? And what if they are not? Does the cache
size variable has any connection with the splitter function? I know that
phoenix schedules threads according to cache size as chunk size, but how?
I would be much appreciated if you could help me with these questions.
Best regards,
- Liyang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20111223/eb70652f/attachment.html
More information about the Barrelfish-users
mailing list