473,322 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Use Page File

Is there a way to tell a process to specifically use the page file for
object storage?

Our problem is we are loading objects that need to be stored during
application runtime but not actually saved until told to do so. In
our case these objects can easily eat 300+ MB of memory.
Unfortunately we can't save any of the images until the overall
project is saved so we don't have the luxury of the local drive for
temp storage.
Jul 28 '08 #1
5 2509
On Jul 28, 4:20*pm, "cfps.Christian" <ge0193...@otc.eduwrote:
Is there a way to tell a process to specifically use the page file for
object storage?

Our problem is we are loading objects that need to be stored during
application runtime but not actually saved until told to do so. *In
our case these objects can easily eat 300+ MB of memory.
Unfortunately we can't save any of the images until the overall
project is saved so we don't have the luxury of the local drive for
temp storage.
Hi,

I suggest you to find another apporach, what about loading partially
the objecT?
What kind of objets are you talking about?
Jul 28 '08 #2
On Mon, 28 Jul 2008 13:20:06 -0700, cfps.Christian <ge*******@otc.edu>
wrote:
Is there a way to tell a process to specifically use the page file for
object storage?
I assume here you are using "page file" to be synonymous with "swap file".
Our problem is we are loading objects that need to be stored during
application runtime but not actually saved until told to do so. In
our case these objects can easily eat 300+ MB of memory.
Unfortunately we can't save any of the images until the overall
project is saved so we don't have the luxury of the local drive for
temp storage.
Why not?

But as far as your specific question goes, if you store the data in
memory, it will be backed by the page file as needed. You don't need to
do anything special to have that happen.

Conversely, you cannot have something backed by the page file unless you
have made room for it in your virtual address space. Even if there were
some mechanism by which you could tell Windows "_really_ put this in the
page file", you would still be limited by the same constraints associated
with memory allocations generally.

If you have data that is too large to fit in your process's address space,
the file system is where you're going to have to put it. If you aren't
able to do that for some reason (and why not?), then I think you're stuck
needing a solution that allows you to deal with only a portion of the data
at a time (just as Ignacio suggests).

Pete
Jul 28 '08 #3
I suggest you to find another apporach, what about loading partially
the objecT?
What kind of objets are you talking about?
Images

The application loads a TON of images and it requires thumbnails the
majority of the time. These are dynamically generated images so we
don't have an image on the drive to pull from. I'd been told years
ago that you can write specifically to the PageFile but that may only
be in C++ or a lower level language.

I was hoping that my lack of need for speed would mean that I could
put them all in the pagefile or put a flag somehow to tell the OS that
the memory should go to page or whatever.

Unfortunately another moment where imagination is limited by language
constraints.
Jul 29 '08 #4
cfps.Christian wrote:
Is there a way to tell a process to specifically use the page file for
object storage?

Our problem is we are loading objects that need to be stored during
application runtime but not actually saved until told to do so. In
our case these objects can easily eat 300+ MB of memory.
Unfortunately we can't save any of the images until the overall
project is saved so we don't have the luxury of the local drive for
temp storage.
All .NET objects gets allocated in virtual memory. Some of them will
reside in physical RAM - some of them (hopefully not too many !) will
reside in the page file.

AFAIK there are no way that you can specify that some objects
should reside in page file and not in RAM.

(there are way to specify that objects should reside in RAM
and not in page file even though I don't think you can do that
for managed memory)

If you need to have it in a file, then write and read the objects
explicit to and from a file in a binary direct access way that is
reasonable efficient.

But I don't think it is worth coding that. The paging mechanism is
pretty sophisticated, so if you do not access your 300 MB of
objects *and* the system need the RAM, then they will end up in
the page file. If you need access to the objects then you don't
want them on disk. And if there are available RAM, then you can just
as well use it.

Arne
Aug 2 '08 #5
Peter Duniho wrote:
On Mon, 28 Jul 2008 13:20:06 -0700, cfps.Christian <ge*******@otc.edu>
wrote:
>Is there a way to tell a process to specifically use the page file for
object storage?

I assume here you are using "page file" to be synonymous with "swap file".
Rather unlikely.

Page file is the term used on Windows (NT family - not 9x family).

Swap file is the term used on *nix.

Arne
Aug 2 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
1
by: alex | last post by:
Hi ! I couldn't make backups with our new system using db2 8.2. Every time I trigger a backup I get this error message: BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1",...
0
by: eswanson | last post by:
Please read the entire reponse, hopefully this clears up your questions. The data used that needs to go into the batchupload page comes from a server. My problem is that currently I write a file...
2
by: ejs | last post by:
Please read the entire reponse, hopefully this clears up your questions. The data used that needs to go into the batchupload page comes from a server. My problem is that currently I write a file...
7
by: Ryan Taylor | last post by:
Hi. I have some code that dynamically generates a PDF and spits this content directly to the web browser. I use HTMLDoc to create the Pdf's from html. So the user can click on a button "Print...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
2
by: rjack | last post by:
I'm using VS 2005 Beta 2. In VS 2003, the Page directive in an aspx page has Language and CodeBehind attributes. You can have the language be different than the code behind file language. For...
7
by: Alan Silver | last post by:
Hello, I have installed the 2.0 framework, and am looking at converting some of my 1.1 pages to use partial classes. I don't (yet) have VS2005, so I'm doing this by hand, but am having problems....
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.