Re: core.thread.Fiber --- runtime stack overflow unlike goroutines
Sean Kelly via Digitalmars-d-learn Fri, 15 Aug 2014 08:11:04 -0700
At least on OSX, it appears that mapping memory is constant time
regardless of size, but there is some max total memory I'm
allowed to map, presumably based on the size of a vmm lookup
tabe. The max block size I can allocate is 1 GB, and I can
allocate roughly 131,000 of these blocks before getting an out of
memory error. If I reduce the block size to 4 MB I can allocate
more than 10M blocks without error. I think some default stack
size around 4 MB seems about right. Increasing the size to 16 MB
failed after about 800,000 allocations, which isn't enough
(potential) fibers.
- Re: core.thread.Fiber --- run... Kagamin via Digitalmars-d-learn
- Re: core.thread.Fiber ---... Sean Kelly via Digitalmars-d-learn
- Re: core.thread.Fiber... Kagamin via Digitalmars-d-learn
- Re: core.thread.F... Kagamin via Digitalmars-d-learn
- Re: core.thread.Fiber... Sean Kelly via Digitalmars-d-learn
- Re: core.thread.Fiber --- run... Carl Sturtivant via Digitalmars-d-learn
- Re: core.thread.Fiber --- runtime ... Brad Anderson via Digitalmars-d-learn
- Re: core.thread.Fiber --- runtime ... Kagamin via Digitalmars-d-learn
- Re: core.thread.Fiber --- run... Dicebot via Digitalmars-d-learn
- Re: core.thread.Fiber ---... Sean Kelly via Digitalmars-d-learn
- Re: core.thread.Fiber... Sean Kelly via Digitalmars-d-learn
- Re: core.thread.F... Martin Nowak via Digitalmars-d-learn
- Re: core.thread.Fiber... Dicebot via Digitalmars-d-learn
- Re: core.thread.F... Sean Kelly via Digitalmars-d-learn
- Re: core.thr... Dicebot via Digitalmars-d-learn
- Re: core... Dicebot via Digitalmars-d-learn
- Re: core.thr... Carl Sturtivant via Digitalmars-d-learn
- Re: core... Sean Kelly via Digitalmars-d-learn
- Re: core.thread.Fiber ---... Kagamin via Digitalmars-d-learn
- Re: core.thread.Fiber --- run... Carl Sturtivant via Digitalmars-d-learn
- Re: core.thread.Fiber ---... Carl Sturtivant via Digitalmars-d-learn