Jump to content











Photo
- - - - -

Just a question about memory use


  • Please log in to reply
4 replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 January 2013 - 02:46 PM

Hi Olof,

 

I'm rather sure that you do not follow the multiPE project, but I'm sure you can give a fast answer to this question:

http://reboot.pro/to...-22#entry166385

which perhaps makes my concerns obsolete.

 

Peter :cheers:



#2 Olof Lagerkvist

Olof Lagerkvist

    Gold Member

  • Developer
  • 1448 posts
  • Location:Borås, Sweden
  •  
    Sweden

Posted 22 January 2013 - 04:46 PM

That is a huge thread and I have not followed all the background, so I think it would be better if you just ask your specific question here.

 

When you for example mounting an image file from the host HD, you can either do that by copying the image file to memory or let ImDisk use the image file directly. When ImDisk uses the image file directly, there is no memory needed for holding an image in memory, since all disk I/O goes directly to the image file. On the other hand, if you select to copy the image file to memory, ImDisk needs to allocate a virtual memory block the size of the image file to hold the disk image data. There needs to be either physical or pagefile memory needed for this, otherwise the memory allocation fails and you get an error message saying that the virtual disk could not be created.



#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 January 2013 - 04:55 PM

That is a huge thread and I have not followed all the background, so I think it would be better if you just ask your specific question here.

 

When you for example mounting an image file from the host HD, you can either do that by copying the image file to memory or let ImDisk use the image file directly. When ImDisk uses the image file directly, there is no memory needed for holding an image in memory, since all disk I/O goes directly to the image file. On the other hand, if you select to copy the image file to memory, ImDisk needs to allocate a virtual memory block the size of the image file to hold the disk image data. There needs to be either physical or pagefile memory needed for this, otherwise the memory allocation fails and you get an error message saying that the virtual disk could not be created.

Thanks, Olof, for that fast reply.

Maybe I made the question too complicated.

 

Simply, for me there is only one question:

 

I boot with e.g. 512 MB host memory (into XP PE): About 100 .. 200 MB are used for the PE and some apps.

There is NO swap file.

 

Can I now use ImDisk to mount a 1 GB file on a HDD, image created by ImDisk, and filled with some apps?

 

IMO I understood your explanation with 'Yes'. Can you confirm?

 

Thanks!

 

Peter



#4 Olof Lagerkvist

Olof Lagerkvist

    Gold Member

  • Developer
  • 1448 posts
  • Location:Borås, Sweden
  •  
    Sweden

Posted 22 January 2013 - 04:58 PM

Yes of course, but you need to mount it as a file type virtual disk, not a virtual memory type virtual disk. You will effectively not get a memory disk in this case, all disk I/O will go directly to the image file.


  • pscEx likes this

#5 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 22 January 2013 - 05:04 PM

Thanks, Olof! :1st:

I'm going to implement in my project.

 

Peter :cheers:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users