Re: Problem with IMGFLASH option of platform

From: Dean Ramsier (dramsiernospam_at_accelentnospam.com)
Date: 05/04/04


Date: Tue, 4 May 2004 08:42:55 -0400

It's always slower to execute from flash than from SDRAM. Accesses to SDRAM
memory are much faster than flash. You might look at your flash timings to
ensure that they are as optimized as possible. If you have burst or
synchronous flash, be sure to make use of those options.

-- 
Dean Ramsier - eMVP
Accelent Systems
http://www.accelent.com
"ikki" <ikki.bbs@cis.nctu.edu.tw> wrote in message
news:OqdbM%23ZMEHA.1388@TK2MSFTNGP09.phx.gbl...
> Dear All:
>
>     Sorry for mis-typing, I modified the orginal post again.
>
>
>
>  The symptom I observed is that the performance of FTP server
>  upload/download. The platform builder version is 4.2.
>  And the processor is Intel DBPXA255(ARM).
>
>   I did some tests:
>  ;----------------------------------------------------------------
>    A file (larger than 7MB).
>
>  if I set IMGFLASH=1 (from platform setting){
>    if I upload a file to \temp (object store){
>          the WinCE ftp server RX is about 300 KBytes/sec;
>    }
>    if I download a file to \temp (object store){
>          the WinCE ftp server TX is about 500 KBytes/sec;
>    }
>    if I upload a file to \RAMDisk (Ramdisk){
>          the WinCE ftp server RX is about 300 KBytes/sec;
>    }
>    if I download a file to \RAMDisk (Ramdisk){
>          the WinCE ftp server TX is about 500 KBytes/sec;
>    }
>
>  } else if I do not set IMGFLASH=1 {
>    if I upload a file to \temp (object store){
>          the WinCE ftp server RX is about 900 KBytes/sec;
>    }
>    if I download a file to \temp (object store){
>          the WinCE ftp server TX is about 1500 KBytes/sec;
>    }
>
>    if I upload a file to \RAMDisk (Ramdisk){
>          the WinCE ftp server RX is about 900 KBytes/sec;
>    }
>    if I download a file to \RAMDisk (Ramdisk){
>          the WinCE ftp server TX is about 1500 KBytes/sec;
>    }
>  }
>  ;----------------------------------------------------------------
>   The config.bib likes below:
>  ;----------------------------------------------------------------
>  ;       Name|Virtual/Cached |Size| Region Type
>  MEMORY
>  IF IMGFLASH !
>
>    NK    800B8000  02000000 RAMIMAGE     ; SDRAM 32MB: [800B 8000 -> 820B
>  7FFF]
>    RAM 820B8000  01C00000 RAM          ; SDRAM 28MB: [820B 8000 -> 83CB
> 7FFF]
>    EDBG 87F8D000  00020000 RESERVED     ; x20000 for EBOOT - 3 Client
memory
>  pools of 24K (128K)
>
>  ENDIF
>
>
>  IF IMGFLASH
>     IF BUILD_ROM_BIN ; 31.5MB
>   NK 98380000  01F80000 RAMIMAGE  ; FLASH 32MB - 0x80000: Locate above
EBOT
>  image and configuration block
>     ENDIF
>     IF BUILD_ROM_NB0 ; 32MB
>   NK 98300000  01E00000 RAMIMAGE ; FLASH 32MB - Replace EBOOT Image
>     ENDIF
>     RAM 820B8000  07C00000 RAM
>  ENDIF
>
>     AUD_DMA    87CB8000  0000A000  RESERVED
>     SLEEP_SAV  87CC2000  00001000  RESERVED
>     DRV_GLB    87CC3000  00001000  RESERVED
>     CACHE_FLG  87CC4000  0003C000  RESERVED  ; for use by cache routines:
>  83CC_4000->83CC_4003 used for flagging. 83CC_4004->83CC_4803 rsvd for
miniD
>     DISPLAY    87D00000  00130000  RESERVED  ; 1MB aligned
>     BLOCK_BUF  87E30000  00080000  RESERVED
>     UNUSED_BUF 87EB0000 000DD000  RESERVED
>
>     whql_sig   00000001  00002000  EXTENSION ; WHQL signature extension
>  (6KB).
>
>     ZBANK      8A000000  00100000  RESERVED
>
>
>  CONFIG
>
>  ;@CESYSGEN IF !NK_NKNOCOMP
>     COMPRESSION=ON
>  ;@CESYSGEN ENDIF !NK_NKNOCOMP
>  ;@CESYSGEN IF NK_NKNOCOMP
>     COMPRESSION=OFF
>  ;@CESYSGEN ENDIF NK_NKNOCOMP
>
>     KERNELFIXUPS=ON
>     ROMFLAGS=0
>
>  IF IMGTRUSTROMONLY
>      IF IMGNOTALLKMODE
>         ROMFLAGS=12
>      ENDIF
>      IF IMGNOTALLKMODE !
>         ROMFLAGS=10
>      ENDIF
>  ENDIF
>
>  IF IMGTRUSTROMONLY !
>      IF IMGNOTALLKMODE
>          ROMFLAGS=3
>      ENDIF
>      IF IMGNOTALLKMODE !
>   ROMFLAGS=1
>      ENDIF
>  ENDIF
>
>  IF IMGFLASH !
>     AUTOSIZE=ON
>  ENDIF
>
>  IF IMGFLASH !
>      ROMSTART=800B8000
>      ROMWIDTH=32
>  ENDIF
>
>  FSRAMPERCENT=0x21212121
>
>  IF IMGFLASH
>      ROMSTART=98300000
>      ROMWIDTH=32
>  ENDIF
>
>     ROMSIZE=01E00000   ;30MB
>  ;----------------------------------------------------------------
>   And the features I used associated are:
>  ;----------------------------------------------------------------
>  -File Systems and Dada Store
>   +Compresssion
>   +Hive-Based Registry
>   +RAM and ROM File System
>   +Storage Manager
>
>   And I add Intel strata flash with IPSM3.7 for flash rom storage.
>  Could anyone have any idea about the performance difference?
>
>  Best regards,
>  mjwang
>
>
>
>