473,898 Members | 3,815 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using boost pool library!

12 New Member
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 3380
gpraghuram
1,275 Recognized Expert Top Contributor
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 New Member
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 Recognized Expert Moderator Expert
Too bad you are not using Windows. You could just call CreateProcessHe ap and you are done.
Apr 15 '08 #4
mavrik
12 New Member
Too bad you are not using Windows. You could just call CreateProcessHe ap and you are done.
Thanks weaknessforcats ....
I am seriously looking for something like that(CreateProc essHeap) 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
2158
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 memory consumption. So I wrote: class OuterClass
7
3188
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 libraries. Here's my situation. My system is Red Hat Linux 9, using the Borland C++BuilderX Personal IDE (which uses the g++ compiler).
11
2912
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 reduces the need to getting and returning connections to the pool repeatedly if a page has multiple calls to the DB, and each one manages its own connection. However, this does requires more deliberate coding, like calling the...
0
2525
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 of you might have an answer. I would greatly appreciate help with this, as I tried to search for an answer for quite some time in vain. I am getting error messages when I try to compile as soon as I put an include to the boost library in the...
3
6418
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 getting this // Include files #include <cmath> #include <iostream> #include <vector>
2
2929
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 besides doing simple ls and copy paste. What I have done is to download the boost library: C:\boost_1_34_0 I downloaded the bjam library: C:\boost-jam-3.1.14-1-ntx86
5
2856
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 of this type is contained in my class and am not sure why. To be honest I have a little but not a lot of experience with templates and it could simply be obvious to a more experienced template user; however, the answer escapes me. Here is a...
6
13869
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 std::list<intList_t; // default allocator //typedef std::list<int, boost::pool_allocator<int List_t;
0
1844
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
9842
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,...
0
10859
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9662
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...
0
7191
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5882
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
6079
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4712
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
2
4298
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3309
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.