* Starting to see your point. In a 100 CPU case, where 98 CPU's have
finished, we would find that the last few hosts that need to be
calculated are suddenly a 100 years older, and probably just drop
dead. That could be remedied by passing the year as a value of the
agent,
but then your second poin
* Starting to see your point. In a 100 CPU case, where 98 CPU's have
finished, we would find that the last few hosts that need to be
calculated are suddenly a 100 years older, and probably just drop
dead. That could be remedied by passing age as a value of the agent,
but then your second point ind
Hi Boris,
> * the global time ref might indeed be incorrect. I just half-
> understood how to make a global incrementing counter and implemented
> it in a way that seemed to work.
It is a fine globally incrementing counter. However...
You describe every agent to be calculating a different year.
On Tue, Dec 23, 2008 at 8:04 AM, bOR_ wrote:
>
> * This variant seems to be light on the number of threads. My
> population size is now a 1000 hosts, but I will probably run sims with
> 10,000 and 100,000 hosts as well. Not knowing that much about how
> threads work inside a machine, I worried ab
Appreciate the attention and the help, Timothy. Let me answer.
* the global time ref might indeed be incorrect. I just half-
understood how to make a global incrementing counter and implemented
it in a way that seemed to work. I'll look into the correct way of
doing that. Right now, when I simula
Hi Boris,
Just digging a little deeper into your code, and I'm convinced that
the global time ref is the problem:
; you currently have:
(defn do-year "Calculate one year" [_]
(send (agent nil) inc-year) ; this seems to be totally wrong
; global year gets updated to year+1
; you start 8 age
oglegroups.com/web/eden.clj?gsc=rQ4WoRYAAAB68Q78LH5o...
>
> > *gather indeed scans all refs, but is only called once every 1000
> > years, and right after an 'await', so I figured everything should have
> > been free then.
>
> > On Dec 22, 2:56 pm, Rich Hickey
(dosync (commute year inc)))
>
> > *Whole source is
> > here:http://clojure.googlegroups.com/web/eden.clj?gsc=rQ4WoRYAAAB68Q78LH5o...
>
> > *gather indeed scans all refs, but is only called once every 1000
> > years, and right after an 'await', so I figur
ed scans all refs, but is only called once every 1000
> years, and right after an 'await', so I figured everything should have
> been free then.
>
> On Dec 22, 2:56 pm, Rich Hickey wrote:
>
> > On Dec 22, 7:41 am, bOR_ wrote:
>
> > > Hi all,
>
>
>
>
> > Hi all,
>
> > Long post, but it boils down that I'm running into a transaction
> > failed after retry limit after running my simulation for a couple of
> > hours. I chatted briefly with fyuryu in #clojure, and am now pasting
> > some of the hopefully
On Dec 22, 7:41 am, bOR_ wrote:
> Hi all,
>
> Long post, but it boils down that I'm running into a transaction
> failed after retry limit after running my simulation for a couple of
> hours. I chatted briefly with fyuryu in #clojure, and am now pasting
> some of
Hi all,
Long post, but it boils down that I'm running into a transaction
failed after retry limit after running my simulation for a couple of
hours. I chatted briefly with fyuryu in #clojure, and am now pasting
some of the hopefully relevant information into this post. Hope anyone
can s
12 matches
Mail list logo