473,385 Members | 1,461 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.

memory watch and monitoring

Programming interfaces are available that provide notifications if a
piece of memory was accessed.
Do you need them for debugging and safety checks?

Examples:
- http://msdn.microsoft.com/library/en...writewatch.asp
- http://tcl.tk/man/tcl8.5/TclLib/TraceVar.htm

How do you think about the chances that this kind of functionality can
be added to the standard API for memory management?

Regards,
Markus

Nov 15 '05 #1
4 2041
Ma************@web.de wrote:
# Programming interfaces are available that provide notifications if a
# piece of memory was accessed.
# Do you need them for debugging and safety checks?

They are frequently used for debugging. If a variable changes unexpected,
you can do stuff to the page it's in and have a debugger check when the
hardware reference the page.

# - http://tcl.tk/man/tcl8.5/TclLib/TraceVar.htm

This is a very different creature than when you trace variables in a
compiled language like C. Tcl is an interpretter, and setting and
referencing of a variable is handled by a function. So variable traces
are added without using anything in the underlying hardware. It makes
the implementation cheaper, so Tcl traces are a frequent programming
technique.

# How do you think about the chances that this kind of functionality can
# be added to the standard API for memory management?

Not in ANSI C because ANSI C has to run on CPUs without the required
hardware. You can define an interface for VM functions and then
provide some implementations for say Windows and Linux. Whether anybody
but you will ever use it depends on issues other than technical merit.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Leave it to the Catholics to destroy existence.
Nov 15 '05 #2
> # How do you think about the chances that this kind of functionality can
# be added to the standard API for memory management?

Not in ANSI C because ANSI C has to run on CPUs without the required
hardware. You can define an interface for VM functions and then
provide some implementations for say Windows and Linux. Whether anybody
but you will ever use it depends on issues other than technical merit.


I imagine variants of "memget" and "memset" functions to add
traceability.
Is a standard option possible to receive notifications or callbacks?

Regards,
Markus

Nov 15 '05 #3
In article <11**********************@f14g2000cwb.googlegroups .com>,
<Ma************@web.de> wrote:
# How do you think about the chances that this kind of functionality can
# be added to the standard API for memory management? Not in ANSI C because ANSI C has to run on CPUs without the required
hardware. You can define an interface for VM functions and then
provide some implementations for say Windows and Linux. Whether anybody
but you will ever use it depends on issues other than technical merit.
I imagine variants of "memget" and "memset" functions to add
traceability.
Is a standard option possible to receive notifications or callbacks?


There is no similar standard option right now.

If you are proposing that there -should- be a standard option along
those lines, you should expect that the committees would not seriously
consider adding it unless a clear software-only implementation is
possible. As the checks would have to be active during -every-
instruction, unless there is a hardware assist (which the committees
are unlikely to accept) the checks would have to be compiled in...
and thus not dynamically configurable.
--
"No one has the right to destroy another person's belief by
demanding empirical evidence." -- Ann Landers
Nov 15 '05 #4
# I imagine variants of "memget" and "memset" functions to add
# traceability.
# Is a standard option possible to receive notifications or callbacks?

If you're defining a new interface/library, is will do whatever you want
it to do. There are variety of callback or signalling mechanisms you can
study.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Title does not dictate behaviour.
Nov 15 '05 #5

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

Similar topics

0
by: JnlSeb | last post by:
Looking for info on how the JVM handles memory. Is there a separate part of memory that handles JNI related activity? If the JVM process shows a memory leak, is it possible (based on monitoring...
0
by: mjkahn | last post by:
I'm running IIS 5.0 under Windows 2000 Server. My ASP (VBscript) code instantiates and uses some objects implemented in custom-written Visual Basic 6 DLLs. (Thanks to a previous thread, we no...
7
by: Claire | last post by:
Im sat here watching task manager and the memory consumption of my application rising second by second. What tools are there out there for me to use to find where it's all going please? (I wish...
5
by: SDS | last post by:
I am writing an ASP.NET application (in C#) that, as part of a particular response, populates a MemoryStream object with binary data that is being collected from a Process object's StandardOutput. ...
6
by: Stan | last post by:
There was a number of postings about aspnet_wp worker process taking too much memory and eventually choking the webserver. One issue is still not clear to me - how can I narrow it down to an...
3
by: RD | last post by:
I have a VBV.NET application that runs on a timer to do a job at one hour intervals. Basically the sequence is as follows the timer event fires 1- the timer get turned off 2- the code then...
8
by: Sean | last post by:
I have a service that is pulling alot of records from a SQL Server table in a DataSet. This process takes up alot of memory, which is to be expected. But when the process is finished, I am clearing...
1
by: rs | last post by:
Hello, I am new to vb.net. I read the vb.net has the garbage collection feature. I am developing a chat program. I was monitoring the memory used by the program. the program starts with 10mb of...
13
by: Ilias Lazaridis | last post by:
How to detect memory leaks of python programms, which run in an environment like this: * Suse Linux 9.3 * Apache * mod_python The problem occoured after some updates on the infrastructure....
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.