meminfo
Description
Reports information about the usage and characteristics of the data memory.
-
dataset [= <index>] is the index of the dataset being queried - see below for details.
-
used is the number of bytes actually used to store data in this dataset.
-
remaining is the number of bytes still available for data storage.
-
size is the maximum total size in bytes of the dataset.
-
capacity is the maximum number of bytes which will be stored in data memory if all of the 'remaining' bytes are fully used. This parameter is not reported by default, but must be requested explicitly.
The dataset argument is present to support the EasyParse data storage format, which assigns different types of deployment data to different datasets as follows:
-
the deployment header is in dataset 2
-
the sample data is in dataset 1
-
events are in dataset 0
-
the sample data generated by postprocessing is in dataset 4
In Standard data storage format, everything is in dataset 1. For a full discussion of data storage formats, refer to the section Format of Stored Data.
If the dataset argument is omitted then dataset 1 is assumed, and no <dataset> value is reported in the command’s response, either: it is assumed that dataset 1 is implicitly understood.
In Standard format, only one dataset is used, and so the remaining parameters have physical interpretations which are not too hard to understand. The size parameter is a fixed number for a given flash memory device. Because of the way these devices store data, it is sometimes not possible to use the entire device in order to reliably store small amounts of information. In such cases small areas of the device are not used to store data, but are no longer available for storage, either. Over the course of a deployment these uncommitted areas can accumulate, so (used + remaining) < size. However, (used + remaining) = capacity should always be true.
In EasyParse format, the relationship between the parameter values and the characteristics of the physical storage device become more complicated. For the curious, this is discussed in detail in the "Technical note" below, but this should not be considered required reading. Although the numbers will not be completely accurate, a reasonable guide to the state of the memory can be obtained by looking at the values for dataset 1 alone, since it contains the sample data, and there will typically be far more sample data than anything else.
Examples
>> meminfo
<< meminfo used = 1528, remaining = 134216192, size = 134217728
>> meminfo capacity
<< meminfo capacity = 134217720
>> meminfo dataset = 1
<< meminfo dataset = 1, used = 1528, remaining = 134216192, size = 134217728
>> meminfo dataset = 0, used
<< meminfo dataset = 0, used = 362
Errors
Error E0108 invalid argument to command: '<invalid-argument>'
The supplied argument was not recognized.
|
Technical note |