Solved

dynamic Memory allocations for large arrays

Posted on 2004-08-18
5
346 Views
Last Modified: 2010-05-18
Hi Folks,

I would appreciate some one could point to docs about efficient methods of dynamic memory allocations of large 2-d and 3d arrays of size of 3GB+ Looking ideas for efficient tranfer of memory locations using MPI function calls.

thank you
regards
Harshu.
0
Comment
Question by:team
5 Comments
 

Author Comment

by:team
ID: 11828367
this for transfer of  matrix elements across nodes of cluster.
0
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 100 total points
ID: 11829214
This means that you have more than 3GB RAM memory?

I think the efficient way is to construct your own specialized linked list of arrays. Will be better if you work in C++. Here are the esencials:
- Linked list provides you flexibility to grow
- Arrays allows you fast access to data
So, combining both data storage techniques, you will have a efficient and fast method to access huge information.

Start building a simple linked list system, then replace single elements in liked list nodes with arrays.
0
 
LVL 11

Accepted Solution

by:
avizit earned 150 total points
ID: 11829802
LCC http://www.cs.princeton.edu/software/lcc/ 
implements its own storage allocation

whenever there is requirement for memory

ity mallocs the required size + 10k extra and from then on whenever more memory is required it returns from the already malloced area and when memory is freed it is not freed to the system but is kept in a list of space available

the implementation is available at

http://www.cs.princeton.edu/software/lcc/pkg/src/alloc.c

but guess you woudl be better off with the book in hand too

/abhijit/

0
 
LVL 9

Expert Comment

by:ankuratvb
ID: 11837458
0
 

Author Comment

by:team
ID: 11855863
ankuratvb: err i am doing this on a Linux Machine. :D Not windows
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
My eclipse editor won't start ? 4 144
valid enum? 6 73
Can case within switch statement specify range of values ? 3 75
What is atomic operation? 6 45
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now