473,320 Members | 1,744 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,320 software developers and data experts.

Using boost pool library!

12
Hi all,

I've a requirement of creating a memory pool for all memory needed by my application, when my application starts.
And I should take all memory from that pool without returning to the System.
This pool should get destructed only when application terminates.
So memory usage of my application will remian constant.
For this purpose, I am planning to use Boost Pool Library.
Can anybody help me in using Boost library.
Is Boost right choice for my requirement?
Please give me suggestions....

-Thansk
Apr 15 '08 #1
4 3348
gpraghuram
1,275 Expert 1GB
Hi all,

I've a requirement of creating a memory pool for all memory needed by my application, when my application starts.
And I should take all memory from that pool without returning to the System.
This pool should get destructed only when application terminates.
So memory usage of my application will remian constant.
For this purpose, I am planning to use Boost Pool Library.
Can anybody help me in using Boost library.
Is Boost right choice for my requirement?
Please give me suggestions....

-Thansk
I read the Boost Pool documentation and according to what i read it is very easy to use the Pool library.
There is no so or anything like that.
I havent used this but with the doc i read i think it is good to use this

Raghuram
Apr 15 '08 #2
mavrik
12
I read the Boost Pool documentation and according to what i read it is very easy to use the Pool library.
There is no so or anything like that.
I havent used this but with the doc i read i think it is good to use this

Raghuram
Thanks for ur reply...
But, do u think that my requirement gets fulfilled by Boosts lib..?
I want that I should be able to define the memory in the beginning of application, which my application will be using.
Which I think is not possible by Boost's pool lib.
What do you say??
-Thanks
Apr 15 '08 #3
weaknessforcats
9,208 Expert Mod 8TB
Too bad you are not using Windows. You could just call CreateProcessHeap and you are done.
Apr 15 '08 #4
mavrik
12
Too bad you are not using Windows. You could just call CreateProcessHeap and you are done.
Thanks weaknessforcats....
I am seriously looking for something like that(CreateProcessHeap) on Linux/Solaris...
If I am able to create a memory pool Heap for my process, by which all memory needed by process will be taken from that Heap, then my job is actuallty done..
Do u have any idea??
I m also searching on google. :)
-Thanks
Apr 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: porschberg | last post by:
Hi, I have question regarding the pool library. In my application I read a lot of data records from a database into a small data class and therefor I thought object_pool could help me to reduce...
7
by: sbobrows | last post by:
{Whilst I think much of this is OT for this newsgroup, I think the issue of understanding diagnostics just about gets under the door. -mod} Hi, I'm a C++ newbie trying to use the Boost regex...
11
by: Bob | last post by:
In our new .NET web applications, we try to limit the use of SqlConnection to just one instance per page, even if there are multiple accesses to various queries. The thinking behind is that this...
0
by: ufnuceda | last post by:
Hello everyone, I was wondering if any of you have some experience with the boost library. I am having trouble compiling code with it. Since boost is being used a lot these days I thought some...
3
by: Chris Jones | last post by:
Hi, I've experimenting with using boost::pool_allocator with std::vector and gcc (4.1)., and I am having problems with segmentation violations. Below I give a simple example of one way I am...
2
by: mr_gees100_peas | last post by:
Hi, I've been trying for days to make either boost.python or swig to work for me. The one I have gotten the closest to is boost. Note that this is for windows XP. I'm not much of an unix person...
5
by: mackenzie | last post by:
Hello, I am looking for a little bit of help. I am trying to create a dynamically allocated object which contains one or more objects of type boost::pool<>. I get a compiler error when an object...
6
by: Juha Nieminen | last post by:
I tested the speed of a simple program like this: //------------------------------------------------------------ #include <list> #include <boost/pool/pool_alloc.hpp> int main() { typedef...
0
by: varnie | last post by:
hell-o !~ i faced weird problem during usage boost::pool_allocator. after i've changed: typedef boost::shared_ptr< param > ParamPtr; typedef std::vector< ParamPtr > ParamPtrVector; with:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: 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
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.