473,467 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

malloc_stats output

Hi

I have questions about malloc_stats output? The example output is
attached below..

Arena 0:
system bytes = 135168
in use bytes = 1240
Total (incl. mmap):
system bytes = 135168
in use bytes = 1240
max mmap regions = 0
max mmap bytes = 0
What is the difference between system bytes and in-use bytes?

Is there any way I can get the information about bytes in malloc
freelist. Another useful information would be to get the bytes
allocated as part of overhead (e.g. for size alignment or other
issues)

Thanks

Jun 7 '07 #1
2 11310
Amit Gupta wrote:
Hi

I have questions about malloc_stats output? The example output is
attached below..
There's no C function called malloc_stats(). Ask in a newsgroup
appropriate to your platform.


Brian
Jun 7 '07 #2
Amit Gupta <em*******@gmail.comwrote:
I have questions about malloc_stats output? The example output is
attached below..

Arena 0:
system bytes = 135168
in use bytes = 1240
Total (incl. mmap):
system bytes = 135168
in use bytes = 1240
max mmap regions = 0
max mmap bytes = 0
What is the difference between system bytes and in-use bytes?
133928.

Oh, you wanted an explanation of what they mean? Well, system bytes are,
obviously, bytes reserved for the system. This means that they're
avaliable for the OS and the Rung 2 and below libraries, but not for
your programs, which typically run on Rung 4 of the Prerog Ladder. In
use bytes is, unfortunately, a typo in the library; it should be in
use_r_ bytes, and it means bytes left free in the user space (Rung 5 and
above) of the current program. (Luckily, the amounts are actually in
kilobytes, not in bytes. If they weren't, you'd be very nearly out of
memory. Even as it is, if you want to open a large file, you may want to
kick some memory from Rung 4 into user space.)

At least, that's how it is under Arawak LOS 4.0 and higher. If you want
to know what all of the above means on the BBC Model B, ask in
comp.sys.acorn.programmer.

Richard
Jun 8 '07 #3

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

Similar topics

4
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: -------------------------------------...
3
by: edgekaos | last post by:
Is method 2 valid? Method 1: wstring input = L"STRING"; wstring output = input; transform(output.begin(), output.end(), output.begin(), towupper); Method 2: wstring input = L"STRING";...
4
by: Kevin Mansel via .NET 247 | last post by:
Ok, basically this is my problem. I'm building a console app tocall a dos program. So i'm using the Shell command to call theprogram, now depending on what happens, I want to read theoutput that...
24
by: kalamantina | last post by:
#include "stdafx.h" #include <stdio.h> #define output( x ) printf( #x "\r\n" );fflush( stdout ) class CMyBase { public: CMyBase() { output( CMyBase() ); f(*this);
0
by: newbie | last post by:
i'm a newbie of c language. can anyone help me to implement the code so that I can get the ciphertext from the output. thanks. #ifndef _3DES_H #define _3DES_H #ifndef uint8 #define uint8 ...
32
by: spibou | last post by:
Is the output of the C preprocessor deterministic ? What I mean by that is , given 2 compilers which conform to the same standard, will their preprocessors produce identical output given as input...
3
by: MatsL | last post by:
Hi, This is seriously driving me crazy, could anyone explain to me why neither of these doesn't produce XHTML compliant output (it is being called in Render() btw): output.WriteLine("<img...
3
by: undshan | last post by:
I am writing a code that needs to open a file, create an output file, run through my function, prints the results to the output file, and closes them within a loop. Here is my code: #include...
2
by: gabosom | last post by:
Hi! I've been breaking my head trying to get the output variables from my Stored Procedure. This is my SP code CREATE PROCEDURE GetKitchenOrderDetail( @idService int, --outPut Variables ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...
0
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...

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.