473,396 Members | 2,089 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,396 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 929
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.