Changeset 562e7ed1 in rtems


Ignore:
Timestamp:
Feb 11, 2000, 3:54:47 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
227aec92, d5e3931
Parents:
35ece2e
Message:

Increased block size to 128 and added comments based on feedback from
Java folks including Oscar Martinez de la Torre <omt@…>.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libfs/src/imfs/imfs.h

    r35ece2e r562e7ed1  
    6767 *  block_ptr is a pointer to a block of IMFS_MEMFILE_BYTES_PER_BLOCK in
    6868 *  length which could be data or a table of pointers to blocks.
    69  */
    70 
    71 #define IMFS_MEMFILE_BYTES_PER_BLOCK     64 /* 512 */
     69 *
     70 *  Setting IMFS_MEMFILE_BYTES_PER_BLOCK to different values has a significant
     71 *  impact on the maximum file size supported as well as the amount of
     72 *  memory wasted due to internal file fragmentation.  The following
     73 *  is a list of maximum file sizes based on various settings
     74 *
     75 *    max_filesize with blocks of   16 is         1,328
     76 *    max_filesize with blocks of   32 is        18,656
     77 *    max_filesize with blocks of   64 is       279,488
     78 *    max_filesize with blocks of  128 is     4,329,344
     79 *    max_filesize with blocks of  256 is    68,173,568
     80 *    max_filesize with blocks of  512 is 1,082,195,456
     81 */
     82
     83#define IMFS_MEMFILE_BYTES_PER_BLOCK     128
    7284#define IMFS_MEMFILE_BLOCK_SLOTS \
    7385  (IMFS_MEMFILE_BYTES_PER_BLOCK / sizeof(void *))
  • c/src/lib/libc/imfs.h

    r35ece2e r562e7ed1  
    6767 *  block_ptr is a pointer to a block of IMFS_MEMFILE_BYTES_PER_BLOCK in
    6868 *  length which could be data or a table of pointers to blocks.
    69  */
    70 
    71 #define IMFS_MEMFILE_BYTES_PER_BLOCK     64 /* 512 */
     69 *
     70 *  Setting IMFS_MEMFILE_BYTES_PER_BLOCK to different values has a significant
     71 *  impact on the maximum file size supported as well as the amount of
     72 *  memory wasted due to internal file fragmentation.  The following
     73 *  is a list of maximum file sizes based on various settings
     74 *
     75 *    max_filesize with blocks of   16 is         1,328
     76 *    max_filesize with blocks of   32 is        18,656
     77 *    max_filesize with blocks of   64 is       279,488
     78 *    max_filesize with blocks of  128 is     4,329,344
     79 *    max_filesize with blocks of  256 is    68,173,568
     80 *    max_filesize with blocks of  512 is 1,082,195,456
     81 */
     82
     83#define IMFS_MEMFILE_BYTES_PER_BLOCK     128
    7284#define IMFS_MEMFILE_BLOCK_SLOTS \
    7385  (IMFS_MEMFILE_BYTES_PER_BLOCK / sizeof(void *))
  • c/src/libfs/src/imfs/imfs.h

    r35ece2e r562e7ed1  
    6767 *  block_ptr is a pointer to a block of IMFS_MEMFILE_BYTES_PER_BLOCK in
    6868 *  length which could be data or a table of pointers to blocks.
    69  */
    70 
    71 #define IMFS_MEMFILE_BYTES_PER_BLOCK     64 /* 512 */
     69 *
     70 *  Setting IMFS_MEMFILE_BYTES_PER_BLOCK to different values has a significant
     71 *  impact on the maximum file size supported as well as the amount of
     72 *  memory wasted due to internal file fragmentation.  The following
     73 *  is a list of maximum file sizes based on various settings
     74 *
     75 *    max_filesize with blocks of   16 is         1,328
     76 *    max_filesize with blocks of   32 is        18,656
     77 *    max_filesize with blocks of   64 is       279,488
     78 *    max_filesize with blocks of  128 is     4,329,344
     79 *    max_filesize with blocks of  256 is    68,173,568
     80 *    max_filesize with blocks of  512 is 1,082,195,456
     81 */
     82
     83#define IMFS_MEMFILE_BYTES_PER_BLOCK     128
    7284#define IMFS_MEMFILE_BLOCK_SLOTS \
    7385  (IMFS_MEMFILE_BYTES_PER_BLOCK / sizeof(void *))
  • cpukit/libfs/src/imfs/imfs.h

    r35ece2e r562e7ed1  
    6767 *  block_ptr is a pointer to a block of IMFS_MEMFILE_BYTES_PER_BLOCK in
    6868 *  length which could be data or a table of pointers to blocks.
    69  */
    70 
    71 #define IMFS_MEMFILE_BYTES_PER_BLOCK     64 /* 512 */
     69 *
     70 *  Setting IMFS_MEMFILE_BYTES_PER_BLOCK to different values has a significant
     71 *  impact on the maximum file size supported as well as the amount of
     72 *  memory wasted due to internal file fragmentation.  The following
     73 *  is a list of maximum file sizes based on various settings
     74 *
     75 *    max_filesize with blocks of   16 is         1,328
     76 *    max_filesize with blocks of   32 is        18,656
     77 *    max_filesize with blocks of   64 is       279,488
     78 *    max_filesize with blocks of  128 is     4,329,344
     79 *    max_filesize with blocks of  256 is    68,173,568
     80 *    max_filesize with blocks of  512 is 1,082,195,456
     81 */
     82
     83#define IMFS_MEMFILE_BYTES_PER_BLOCK     128
    7284#define IMFS_MEMFILE_BLOCK_SLOTS \
    7385  (IMFS_MEMFILE_BYTES_PER_BLOCK / sizeof(void *))
Note: See TracChangeset for help on using the changeset viewer.