[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] mmap
From: |
Felix Winkelmann |
Subject: |
Re: [Chicken-hackers] mmap |
Date: |
Fri, 11 Jul 2014 15:19:58 +0200 (CEST) |
From: Andy Bennett <address@hidden>
Subject: Re: [Chicken-hackers] mmap
Date: Fri, 11 Jul 2014 14:16:27 +0100
> Hi,
>
>> There is no way to do this. By messing around with Linux-specific
>> mmap() flags, you can get Linux to prepage the whole file, paying the
>> entire cost at once,
>
> Yes. These methods don't strike me as a very good way forward.
>
> I was thinking more along the lines of executing FFI calls in a (pool
> of?) pthreads.
> That would solve the issue for mmap callers as well as any APIs which
> had underlying blocking calls of any type.
Interesting approach... The concurrent-native-callbacks egg might be
handy in this case. It uses a nonblocking pipe to communicate with
native threads.
felix
- Re: [Chicken-hackers] library unit restructuring, (continued)
[Chicken-hackers] mmap (was: Re: library unit restructuring), Andy Bennett, 2014/07/10