Skip Menu |

This queue is for tickets about the File-Map CPAN distribution.

Report information
The Basics
Id: 91329
Status: resolved
Priority: 0/
Queue: File-Map

People
Owner: Nobody in particular
Requestors: andrewksmith [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: File::Map and RAM disks.
Date: Wed, 11 Dec 2013 15:27:42 -0500
To: bug-File-Map [...] rt.cpan.org
From: Andrew Smith <andrewksmith [...] gmail.com>
Hi, I've been using your module File::Map and it has been working well, but I had a question and possible feature request. How would File::Map deal with the case of a file to be mapped (using map_file) that is stored on a RAM disk? On the surface this might seem funny --- if you have a RAM disk why would you need to use File::Map, just use the RAM disk directly. But it might still be nice to access the RAM disk via File::Map (i.e. same interface no matter how/where the file is stored). So how would File::Map handle this situation? Would it just remap the file again in memory, or is it smart enough to know it is accessing a RAM disk and thus wouldn't remap? If it doesn't know about RAM disks it might be nice to add this feature in --- e.g. allow the user to specify that the file to be mapped is stored in a RAM disk and then don't have File::Map map it into memory again. thanks, Andrew Smith
Subject: Re: [rt.cpan.org #91329] File::Map and RAM disks.
Date: Wed, 8 Jan 2014 17:06:30 +0100
To: bug-File-Map [...] rt.cpan.org
From: Leon Timmermans <leont [...] cpan.org>
On Wed, Dec 11, 2013 at 9:27 PM, Andrew Smith via RT < bug-File-Map@rt.cpan.org> wrote: Show quoted text
> Hi, > > I've been using your module File::Map and it has been working well, but I > had a question and possible feature request. How would File::Map deal with > the case of a file to be mapped (using map_file) that is stored on a RAM > disk? On the surface this might seem funny --- if you have a RAM disk why > would you need to use File::Map, just use the RAM disk directly. But it > might still be nice to access the RAM disk via File::Map (i.e. same > interface no matter how/where the file is stored). So how would File::Map > handle this situation? Would it just remap the file again in memory, or is > it smart enough to know it is accessing a RAM disk and thus wouldn't remap? > If it doesn't know about RAM disks it might be nice to add this feature in > --- e.g. allow the user to specify that the file to be mapped is stored in > a RAM disk and then don't have File::Map map it into memory again. > >
Your operating system takes care of all of that, look up virtual memory system if you're interested in how this works. :-) Leon