ram

I have some RAM to burn - any suggestions?

I needed to run memcached locally for dev on my Mac G5 so I have 8 Gigs now. I also use a RAM disk for running scripts on large files. Have you used extra ram for any interesting tasks? ...

How to do I check CPU and Memory Usage in Java?

I need to check CPU and memory usage for the server in java, anyone know how it could be done? ...

What is StringBuilder's RAM consumption like?

We have a few operations where we are doing a large number of large string concatenations, and have recently encountered an out of memory exception. Unfortunately, debugging the code is not an option, as this is occurring at a customer site. So, before looking into a overhaul of our code, I would like to ask: what is the RAM consumpt...

Using the file system to augment ram

I should preface this by saying I'm working on a pocket PC app and the data files live on sd cards. I have an app that has to create an array of size x. malloc is failing every time. I've got a 1 gig file on a 4 gig card. I've got 64 megs of onboard memory (ram/data/application/os) I can't process the data because the array I need ...

How to get current CPU and RAM usage in Python?

What's your preferred way of getting current system status (current CPU, RAM, free disk space, etc.) in Python? Bonus points for *nix and Windows platforms. There seems to be a few possible ways of extracting that from my search: Using a library such as PSI (http://www.psychofx.com/psi/trac/wiki/ -- that currently seems not actively d...

How do you determine the amount of Linux system RAM in C++?

I just wrote the following C++ function to programatically determine how much RAM a system has installed. It works, but it seems to me that there should be a simpler way to do this. Can someone tell me if I'm missing something? getRAM() { FILE* stream = popen( "head -n1 /proc/meminfo", "r" ); std::ostringstream output; int...

Need to load the whole postgreSQL database into the RAM.

How do I put my whole PostgreSql database into the RAM for a faster access?? I have 8GB memory and I want to dedicate 2 GB for the DB. I have read about the shared buffers settings but it just caches the most accessed fragment of the database. I needed a solution where the whole DB is put into the RAM and any read would happen from the R...

When can CPU and RAM be interchangeable?

Hi, I'm trying to troubleshoot an enterprise application of sort running at a customer's site. The application, which is actually a search engine, is eating 99% CPU but almost no more RAM than when IDLE. No dramatic I/O or Network activities were registered as well. My question is: is the application badly designed? Could any applicat...

How to get current CPU and RAM usage in C++?

Hello, is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call? Thank you. ...

Efficient reordering of large dataset to maximize memory cache effectiveness

I've been working on a problem which I thought people might find interesting (and perhaps someone is aware of a pre-existing solution). I have a large dataset consisting of a long list of pairs of pointers to objects, something like this: [ (a8576, b3295), (a7856, b2365), (a3566, b5464), ... ] There are way too many objects...

.ram audio file player

I would like to play some .ram audio files. Can someone point me to a free player? Thanks. ...

Temp file that exists only in RAM?

I'm trying to write an encrpytion using the OTP method. In keeping with the security theories I need the plain text documents to be stored only in memory and never ever written to a physical drive. The tmpnam command appears to be what I need, but from what I can see it saves the file on the disk and not the RAM. Using C++ is there any ...

Is it a solution to upgrade RAM memory from 2GB to 4GB ?

Hi All, My PC has 2GB RAM memory. When I form a 3D mesh object having an array of 70.000 items in C# 2008 Express Edition, I get the error message "Stack Overflow exception handled...". If I upgrade RAM memory from 2GB to 4 GB, can I overcome this error message ? Thanks in advance. Regards. Oner YILMAZ ...

Configure .NET CLR RAM usage

Is there a method of configuring the .NET CLR RAM usage on my machine? Suppose I have 64GB of RAM and I want to limit it to 4GB? It this possible? Edit - The root of the problem is that I have a 64-bit application that runs fine on a 64bit - 4GB machine but when run on a 64bit - 64GB machine it fails (stops dead in it's tracks when al...

Read data directly from file to RAM in C++

Hi all, Is there a way to directly read a binary file into RAM? What I mean is, is there a way to tell the compiler, here's the file, here's the block of RAM, please put the file contents in the RAM, off you go, quickly as you can please. Currently I'm stepping through the file with ifstream loading it into RAM (an array) 64bit block ...

Will multi threading provide any performance boost?

Hello everyone, I am new to programming in general so please keep that in mind when you answer my question. I have a program that takes a large 3D array (1 billion elements) and sums up elements along the various axis to produce a 2D array of a projection of each side of the data. The problem here is that it is very ram intensive as th...

fill memory with random data

Is there a way to fill the free RAM on a linux machine with random data? The reason I'm asking this: I'm working in a group where we do numerical programming in Fortran. Sometimes, people mess up working with double precision reals, so that programs that should give double precision results only give single precision. If my understandi...

How much RAM is SQL Server actually using?

I am debugging one of my apps and noticed that the RAM on my SQL Server 2005 x64 box (running on a Windows 2003 R2 x64 ) is pegged and even going into the paging file. I understand that SQL Server 2005 x64 just grabs everything it can, so this might be normal (???). How can I check how much memory it is actually using? ...

Detect CPU Speed/Memory/Internet Speed using Java?

Is it possible within Java to identify the total CPU speed available as well as the total system memory? Network connection speed to the web would also be awesome. ...

Can a System.AccessViolationException happen because of faulty RAM?

I have a website that i've been working on for about a year now. Recently, it's started throwing System.AccessViolationException every now and then, in my dev machine, mostly, when I was away from the machine... I haven't changed anything on the server code in weeks, since I've been working 100% on the Javascript part, and this error st...