unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#14756: threads - par-map - multicore issue
@ 2013-06-30 18:00 David Pirotte
  2016-06-21  6:51 ` Andy Wingo
  0 siblings, 1 reply; 4+ messages in thread
From: David Pirotte @ 2013-06-30 18:00 UTC (permalink / raw)
  To: 14756

Hello,

	guile --version
	guile (GNU Guile) 2.0.9.20-10454

It seems that the par-map not using all cores problem has some how been reintroduced?

	guile -c '(begin (use-modules (ice-9 threads)) (par-map 1+ (iota 400000)))'

only uses 1 core [it seems it uses some other [maybe all, i can't tell] a couple of
milliseconds, then drops to 1 core only.

Thanks,
David

;; -- 

david@idefix:~ 16 $ guile -c '(begin
>     (use-modules (ice-9 threads))
>     (par-map 1+ (iota 400))
>     (display (current-processor-count)) (display "\n")
>     (display (length (@@ (ice-9 futures) %workers))) (display "\n"))'
12
11





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-28  9:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-30 18:00 bug#14756: threads - par-map - multicore issue David Pirotte
2016-06-21  6:51 ` Andy Wingo
2016-06-21  8:33   ` Ludovic Courtès
2017-02-28  9:53     ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).