Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Programming with Judy: C LanguageJudy Version 4.0 > Chapter 5 Tuning HP-UX Memory Access

The chatr Command

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The chatr command changes a program's internal attributes and can be used to modify the data page size for a specific executable. The larger the page size, the fewer virtual-to- physical, memory-page translations your process has to undergo. This can have a dramatic effect (sometimes 2X) on the performance of data-intensive (RAM) applications.

For programs that use less than 64 MB of data space, use

  • chatr +pd L a.out

to allow the page size to grow from 16 Kb to 32 Kb or 64 Kb and up to the maximum it needs.

For programs that use more than 64 MB of data space, use

  • chatr +pd 64M a.out

This command causes the a.out to start with large pages (64 MB) and limits the page size to 64 MB, so that page sizes that are too large cannot cause a premature out of memory condition. For example, if you are using a 1GB page size and only have 0.99 GB left, the page allocation may fail (you run out of memory even though you have almost a gigabyte left).

For over 2GB of RAM, use chatr to enable the use of data space above 2GB:

  • chatr +q3p enable (only needed on a 32-bit a.out)

For over 3GB of RAM, use:

  • chatr +q4p enable (only needed on a 32-bit a.out)

See the chatr(1) man page for more information.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.