Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

AVAIL AmigaDOS
Purpose: To report the amount of memory available on the system.
Format: AVAIL [CHIP | FAST | VIRTUAL | TOTAL] [FLUSH] [SHOW <show>]
Template: CHIP/S, FAST/S, TOTAL/S, FLUSH/S, VIRTUAL/S, SHOW/K
Path: C:AVAIL
AVAIL gives a summary of the system RAM, analysed by Chip RAM, Fast RAM and Virtual memory. For each memory type, AVAIL reports the total amount of memory, how much is available, how much is currently in use, and the largest contiguous block not yet allocated.

By using the CHIP, FAST, VIRTUAL, and/or TOTAL options, you can have AVAIL display only the number of free bytes of CHIP, FAST, VIRTUAL or TOTAL RAM available, instead of the complete summary. This value can be used for comparison in scripts.

The FLUSH option causes all unused libraries, devices, and fonts to be expunged from memory.

The SHOW <show> argument can be used to specify the displayed format. The options are:

    BYTE - display memory in bytes (default)
    KILO - display memory in kilobytes
    MEGA - display memory in megabytes

Example 1:

3.OS4:> AVAIL
Installed: 536,870,912
Free:      483,663,872
A complete summary of system RAM is displayed in bytes.

Example 2:

3.OS4:> AVAIL SHOW MEGA
Installed: 512.000 M
Free:      461.237 M
A complete summary of system RAM is displayed in megabytes.

Example 3:

3.OS4:> AVAIL CHIP
2067904
The number of free bytes of CHIP RAM is displayed.


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: December 24, 2006.