File mapping

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

File mapping

Igor Stasenko
Many OSes providing file mapping using virtual memory paging.
Is there any plugins in squeak, which allow to use them?

Reply | Threaded
Open this post in threaded view
|

Re: File mapping

johnmci
FFI comes to mind, behaviour of that is very operating system, and  
operating system version dependent.
What are you trying to do?

On Jul 20, 2007, at 10:20 AM, sig wrote:

> Many OSes providing file mapping using virtual memory paging.
> Is there any plugins in squeak, which allow to use them?
>

--
========================================================================
===
John M. McIntosh <[hidden email]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
========================================================================
===



Reply | Threaded
Open this post in threaded view
|

Re: File mapping

Igor Stasenko
Make use of it for Magma DB persistance :)

On 20/07/07, John M McIntosh <[hidden email]> wrote:

> FFI comes to mind, behaviour of that is very operating system, and
> operating system version dependent.
> What are you trying to do?
>
> On Jul 20, 2007, at 10:20 AM, sig wrote:
>
> > Many OSes providing file mapping using virtual memory paging.
> > Is there any plugins in squeak, which allow to use them?
> >
>
> --
> ========================================================================
> ===
> John M. McIntosh <[hidden email]>
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ========================================================================
> ===
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: File mapping

Klaus D. Witzel
On Fri, 20 Jul 2007 21:17:12 +0200, sig wrote:

> Make use of it for Magma DB persistance :)

-  
http://lists.squeakfoundation.org/pipermail/squeak-dev/2006-December/112204.html

>
> On 20/07/07, John M McIntosh <[hidden email]> wrote:
>> FFI comes to mind, behaviour of that is very operating system, and
>> operating system version dependent.
>> What are you trying to do?
>>
>> On Jul 20, 2007, at 10:20 AM, sig wrote:
>>
>> > Many OSes providing file mapping using virtual memory paging.
>> > Is there any plugins in squeak, which allow to use them?
>> >
>>
>> --
>> ========================================================================
>> ===
>> John M. McIntosh <[hidden email]>
>> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
>> ========================================================================
>> ===
>>
>>
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: File mapping

Igor Stasenko
First: what this primitive Avi mentioned, where i can look at it?
Second: I don't want to map objects directly to file. I mean i don't
want to use a mapped file as part of VM object memory. I want to keep
it separated and use it for persisting a magma DB.
I'm just thinking about how to improve speed with which Magma can
reify objects and commit them to storage.

On 20/07/07, Klaus D. Witzel <[hidden email]> wrote:

> On Fri, 20 Jul 2007 21:17:12 +0200, sig wrote:
>
> > Make use of it for Magma DB persistance :)
>
> -
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2006-December/112204.html
>
> >
> > On 20/07/07, John M McIntosh <[hidden email]> wrote:
> >> FFI comes to mind, behaviour of that is very operating system, and
> >> operating system version dependent.
> >> What are you trying to do?
> >>
> >> On Jul 20, 2007, at 10:20 AM, sig wrote:
> >>
> >> > Many OSes providing file mapping using virtual memory paging.
> >> > Is there any plugins in squeak, which allow to use them?
> >> >
> >>
> >> --
> >> ========================================================================
> >> ===
> >> John M. McIntosh <[hidden email]>
> >> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> >> ========================================================================
> >> ===
> >>
> >>
> >>
> >>
> >
> >
>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: File mapping

Klaus D. Witzel
On Sat, 21 Jul 2007 00:25:37 +0200, sig wrote:

> First: what this primitive Avi mentioned, where i can look at it?

Class ImageSegment message category #primitives has users.

> Second: I don't want to map objects directly to file.

lol. Do objects know that you don't want that :)

> I mean i don't
> want to use a mapped file as part of VM object memory.

ImageSegments are loaded/unloaded to/from VM object memory.

> I want to keep
> it separated and use it for persisting a magma DB.

Then External* classes seem to be your choice (John mentioned FFI).

> I'm just thinking about how to improve speed with which Magma can
> reify objects and commit them to storage.
>
> On 20/07/07, Klaus D. Witzel <[hidden email]> wrote:
>> On Fri, 20 Jul 2007 21:17:12 +0200, sig wrote:
>>
>> > Make use of it for Magma DB persistance :)
>>
>> -
>> http://lists.squeakfoundation.org/pipermail/squeak-dev/2006-December/112204.html
>>
>> >
>> > On 20/07/07, John M McIntosh <[hidden email]> wrote:
>> >> FFI comes to mind, behaviour of that is very operating system, and
>> >> operating system version dependent.
>> >> What are you trying to do?
>> >>
>> >> On Jul 20, 2007, at 10:20 AM, sig wrote:
>> >>
>> >> > Many OSes providing file mapping using virtual memory paging.
>> >> > Is there any plugins in squeak, which allow to use them?
>> >> >
>> >>
>> >> --
>> >>  
>> ========================================================================
>> >> ===
>> >> John M. McIntosh <[hidden email]>
>> >> Corporate Smalltalk Consulting Ltd.  
>> http://www.smalltalkconsulting.com
>> >>  
>> ========================================================================
>> >> ===
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>>
>>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: File mapping

Igor Stasenko
On 21/07/07, Klaus D. Witzel <[hidden email]> wrote:
> On Sat, 21 Jul 2007 00:25:37 +0200, sig wrote:
>
> > First: what this primitive Avi mentioned, where i can look at it?
>
> Class ImageSegment message category #primitives has users.
>
> > Second: I don't want to map objects directly to file.
>
> lol. Do objects know that you don't want that :)

If you may know, nobody asks objects about it ;)

>
> > I mean i don't
> > want to use a mapped file as part of VM object memory.
>
> ImageSegments are loaded/unloaded to/from VM object memory.
Yes, magma using same approach, but in more flexible way, rather
simple fileout a graph segment.

>
> > I want to keep
> > it separated and use it for persisting a magma DB.
>
> Then External* classes seem to be your choice (John mentioned FFI).
>
I just wanted to know, if, by chance primitives to use mapped files
already exists. As i see they not. Well, i can write own (interesting,
is Avi still needs them :)