Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title 'Not Enough Memory' error when using chkfsys
Ref. No. QNX.000009442
Category(ies) Utilities, Filesystem
Issue When attempting to run 'chkfsys' on our 35 gigabyte hard drive and 12 megs of RAM, we get a "Not Enough Memory" error.
Solution QNX uses a bitmap that tracks the state of each 512 byte block.  Chkfsys loads this bitmap into memory, and then reads the entire drive, constructing another in-memory bitmap, and then compares the two.  There must be enough free memory for both bitmaps.

On a 35Gig drive:  35 * 1024 * 1024 * 1024 == 37,580,963,840 bytes.
At 512 bytes per block: 73,400,320 blocks, which is a 73,400,320 bit bitmap.  That is 9,175,040 bytes or 8,960 Kbytes, or 8.75 Meg. So, to chkfsys a 35Gig hdisk, you will need at least 17.5 Meg free.