Modify the fsrampercent value in the config. bib file under wince to change the memory percentage.

Source: Internet
Author: User

 

Related posts on csdn
Http://topic.csdn.net/u/20090801/00/4f7f18fa-9327-41ad-9690-69c7eedb6951.html? Seed = 319379432 & R = 62915971 # r_62915971

 

1. Description of fsrampercent in config. bib

The fsrampercent setting belongs to the config field !!!

 

Fsrampercent:
Format: fsrampercent = Number
The default value is 0x80808080. Specify the percentage of memory allocated to the file system. Number is divided into four bytes, expressed in hexadecimal notation.

The value of byte0 (unit: 4 kb) indicates an integer multiple of 4 kb in the first 2 MB.
The value of byte1 (unit: 4 kb) indicates an integer multiple of the 4kb contained in each 1mb In the second 2 MB.
The value of byte2 (unit: 4 kb) indicates that in the third 2 MB, each 1 MB contains an integer multiple of 4 kb.
The value of byte3 (unit: 4 kb) indicates an integer multiple of the 4kb contained in each 1 MB in the remaining memory.

Calculate the percentage represented by the default value 0x80808080: 0x80*4 K/1 m = 0.5. Because each byte is equal to 0.5, the percentage occupied is 50%.

2. Modify the experiment data using fsrampercent in config. bib.

The value set by fsrampercent is the ratio of the storage memory to the total memory of the system. The total memory of the system = the storage memory + program memory.

The system memory option on the control panel of the wince system shows a progress bar corresponding to the fsrampercent setting.

 

; 2010--1--20 xqh

; Prog ram is % 50 -------- percentage of program memory to the total memory
; Fsrampercent = 0x80808080

; Prog ram is 87.5% -------- percentage of program memory to the total memory
; Fsrampercent = 0x20202020

; Prog ram is 50% -------- proportion of the program memory to the total memory ------ this setting does not change very strange !!! ---- The byte order is backward (0x10 is 1st bytes byte0)
; Fsrampercent = 0x80808010

; Prog ram is 88% -------- percentage of program memory to the total memory
Fsrampercent = 0x10808080

; Prog ram is 94% -------- percentage of program memory to the total memory
Fsrampercent = 0x10101010

3. Introduction In the MS Help File

// I don't think it can be simply calculated. It should be related to the entire memory size of the system !!! -------- A simple division is not accurate !!!

The following code example shows how to use fsrampercent to allocate available Ram to the file system.

Fsrampercent = 0x10203040
 

In this example, 64 4kb chunks are allocated to byte 0. 48 4kb chunks are allocated to byte 1,

32 4kb chunks are allocated to byte 2, and 16 4kb chunks are allocated to byte 3.

The total percentage of memory reserved for the file system wocould be (64 + 48 + 32 + 16) * 4kb)/4 MB, or 15.6%.

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.