Skip to main content

developerWorks >  AIX and UNIX  >  Forums  >  AIX Forum for developers  >  developerWorks

Check that memory is filled by zero or not after process dies    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 2 - Pages: 1 - Last Post: Nov 19, 2009 9:07 AM Last Post By: flodstrom Threads: [ Previous | Next ]
Maksim 111

Posts: 2
Registered: Nov 09, 2009 04:42:27 AM
Check that memory is filled by zero or not after process dies
Posted: Nov 09, 2009 06:40:55 AM
Click to report abuse...   Click to reply to this thread Reply
Hello.

I have to check whether AIX fills physical memory pages by zeros when they are freed from an address space (or may be when they are given for a new process).
In other words when a process gets a new memory page, this one must be cleaned. And I have to check it.

I've solved this task for Solaris using DTrace.
I found out that in Solaris memory pages are cleaned by pagezero routine.
So using entry and return probes of fbt provider in DTrace and getting input and output of the functions which are used in pagezero implementation I achieved my goal.

And now I have to solve the same task in AIX.
As I understand the source code of AIX are closed and that way which was used in Solaris aren't fit.

So could you be so kind to advise me the way of solving my task in AIX.
Maksim 111

Posts: 2
Registered: Nov 09, 2009 04:42:27 AM
Re: Check that memory is filled by zero or not after process dies
Posted: Nov 11, 2009 09:02:07 AM   in response to: Maksim 111 in response to: Maksim 111's post
Click to report abuse...   Click to reply to this thread Reply
Ok. You didn't answer.
Could you tell me how can i translate the virtual address which was gotten from malloc to the physical address.
I think it's possible to do using kdb. But i haven't found out how?
flodstrom

Posts: 32
Registered: Feb 27, 2009 04:25:01 AM
Re: Check that memory is filled by zero or not after process dies
Posted: Nov 19, 2009 09:07:25 AM   in response to: Maksim 111 in response to: Maksim 111's post
Click to report abuse...   Click to reply to this thread Reply
A bit late, but have you looked at probevue?

http://www.ibm.com/developerworks/wikis/display/WikiPtype/Probevue

I'm not an expert of it, but it's a quite nice tool that may be able to do what you want. Note, I think probevue is for AIX 6.1 only. I don't know of any similar tool for AIX 5.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums