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

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 11300
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 ...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.