473,698 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2519
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
3540
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) template. Briefly -------------------------------------------------------------------------------------------- I need to create dynamically some controls on the forms, and display these
1
4749
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", "/raid/backup/ebuero2/part10", "/raid/backup/ebuero2/part11", "/raid/backup/ebuero2/part12", "/raid/backup/ebuero2/part13", "/raid/backup/ebuero2/part14", "/raid/backup/ebuero2/part15", "/raid/backup/ebuero2/part16", "/raid/backup/ebuero2/part17",
0
791
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 to the server and then the user has to pick this file and send it up to the batchupload page. The batchupload page is not one of our page, instead it is another company's page. This is there interface to do batch processing. We have no control...
2
1732
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 to the server and then the user has to pick this file and send it up to the batchupload page. The batchupload page is not one of our page, instead it is another company's page. This is there interface to do batch processing. We have no control...
7
2581
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 PDF" and the current page magically becomes a PDF file. This worked great until we moved the site to https. Now, when the button is clicked, I get a warning that This page contains both secure and nonsecure items. Do you want to display the...
15
4764
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is not validate based on some given rules. I also have a custom error handling page to show the...
2
1648
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 instance, you can have Language="vb" CodeBehind="classA.cs" In VS 2005, the CodeBehind attribute seems to have been replaced with
7
1747
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. I have a simple page that I made in the beta2 version of VWD. The code behind looks like... using System;
6
4883
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
3
4426
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 when iam using a normal web page... but can't in content page.... Code in Master Page <%@ Master Language="C#" AutoEventWireup="true" CodeFile="submaster.master.cs" Inherits="submaster" %> <%@ Register Assembly="AjaxControlToolkit"...
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7739
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.