473,769 Members | 4,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to get available physical memory on unix

pp
hi,

on window we can GlobalMemorySta tusEx() to get the memory status on
the system
do we have any equivalent function on Unix/linux?

can we use BOOST library to memory information on the unix?

please help me.
Nov 20 '07 #1
5 3713
pp wrote:
on window we can GlobalMemorySta tusEx() to get the memory status on
the system
do we have any equivalent function on Unix/linux?
- wrong newsgroup (try comp.unix.progr ammer, or some Linux newsgroup),
- it is typically possible on a per-system basis but not portably,
- normally programs shouldn't care about this unless you know why, from
your question, I would think you don't.

Nov 20 '07 #2
Matthias Buelow wrote:
pp wrote:
on window we can GlobalMemorySta tusEx() to get the memory status on
the system
do we have any equivalent function on Unix/linux?
- wrong newsgroup (try comp.unix.progr ammer, or some Linux newsgroup),
- it is typically possible on a per-system basis but not portably,
- normally programs shouldn't care about this unless you know why, from
your question, I would think you don't.
Just a nit, but what does the question even mean? What is meant
by "global memory status"? (The subject line suggests one
meaning, but that doesn't make any real sense on a multi-process
system with virtual memory.)

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Nov 20 '07 #3
James Kanze wrote:
but that doesn't make any real sense on a multi-process
system with virtual memory.)
"void main(..)" doesn't make sense either but that's no putting off
MSDN. It also says:

"You can use the GlobalMemorySta tusEx function to determine how much
memory your application can allocate without severely impacting other
applications."

Giving people idiotic ideas seems to be one thing MSDN is really good at.
Nov 20 '07 #4
On Nov 20, 7:44 pm, Matthias Buelow <m...@incubus.d ewrote:
James Kanze wrote:
but that doesn't make any real sense on a multi-process
system with virtual memory.)
"void main(..)" doesn't make sense either but that's no putting off
MSDN. It also says:
"void main()" actually does make sense. But it won't compile
with a conforming compiler.
"You can use the GlobalMemorySta tusEx function to determine
how much memory your application can allocate without severely
impacting other applications."
Which is still a more or less meaningless statement. Or rather,
one which has no real answer: if the other application is a
numeric simulation program, using a number of arrays of several
million elements, the amount of memory my process can use
without severely impacting it is considerably less than if the
other process is a simple search program, which never holds more
than a single line in memory at a time.

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Nov 21 '07 #5
pp
On Nov 21, 1:52 pm, James Kanze <james.ka...@gm ail.comwrote:
On Nov 20, 7:44 pm, Matthias Buelow <m...@incubus.d ewrote:
James Kanze wrote:
but that doesn't make any real sense on a multi-process
system with virtual memory.)
"void main(..)" doesn't make sense either but that's no putting off
MSDN. It also says:

"void main()" actually does make sense. But it won't compile
with a conforming compiler.
"You can use the GlobalMemorySta tusEx function to determine
how much memory your application can allocate without severely
impacting other applications."

Which is still a more or less meaningless statement. Or rather,
one which has no real answer: if the other application is a
numeric simulation program, using a number of arrays of several
million elements, the amount of memory my process can use
without severely impacting it is considerably less than if the
other process is a simple search program, which never holds more
than a single line in memory at a time.

--
James Kanze (GABI Software) email:james.ka. ..@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
thanks for you replies.

see guys thats ok if we are not getting the actual information abt the
memory.
there job is to provide the functionality if dont want to use dont
use.

the thing is posted this question because i was looking for an answer.
everyone has different opinions.

can someone please tell how can we achieve the same fuctionality on
unix like GlobalMemorySta tusEx .

Nov 23 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5729
by: Sharon | last post by:
I have an application that fails to allocate all its memory on physical memory. I have a Windows XP with 2 GByte RAM. Can anybody tell me how to configure the allowed physical memory for each application in the Windows XP so the application memory allocation will not use any of the virtual memory? I’m not talking about the .NET framework. I need to configure the Windows itself.
6
8032
by: Christoph Schuster | last post by:
Hi ! We have a Liveserver running with ASP.NET 1.1.4322.0, whicht get a error after 3-5 days running: Source: ASP.NET 1.1.4322.0 Event ID: 1088 Description: Failed to execute request because the App-Domain could not be created. Error: 0x8007000e Not enough storage is
3
7128
by: harry | last post by:
VS.NET 2002 (VB.NET) on Win XP. Is there a known bug regarding .NET reporting System.OutOfMemoryException when there is plenty of Virtual memory available? My TaskManager shows 1237M / 2181M in use. Even the peak memory usage of 1391MB is nowhere near the limit. I have 1.15GB physical memory ... remainder is System allocated Virtual Memory / Swap Space.
4
2512
by: comp.lang.php | last post by:
I wrote my own version of memory_get_usage() if that function is not available: if (!function_exists('memory_get_usage')) { /** * Determine the amount of memory you are allowed to have * * @access public * @return long
0
1147
by: patelpradeep | last post by:
hi, on window we can GlobalMemoryStatusEx() to get the memory status on the system do we have any equivalent function on Unix/linux? can we use BOOST library to memory information on the unix? please help me.
1
1689
by: George2 | last post by:
Hello everyone, I am using Windows Server 2003. I am confused about the available (memory) value under Physical Memory category. From search there are two meanings, 1. available means free physical memory, not used yet by any application; 2. available means the total size of physical memory user application could use (exclude System Cache and Kernel Memory, which user application can not use), the user application may actually...
66
3706
by: karthikbalaguru | last post by:
Hi, Will 'free' return the memory Immediately to the OS ? Thx in advans, Karthik Balaguru
4
7894
by: pghantasala | last post by:
How to get available physical memory using javascript NOT USING WMI ?? any other way? I need to achieve this by using javascript/vbscript and I cannot use WMI. Please let me know the possibilities.
0
9590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
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
9866
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
8879
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
7413
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
6675
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
5310
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...
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.