Abstract:UBI subsystem is achieving the management of the wear leveling in the UBIFS file system, but the study found that the wear of the existing equilibrium strategy UBI there are significant limitations. This paper propose a new algorithm which is based on the temperature of physical block and the age of the logic block, that is called LTPA (leb temperature peb age) algorithm. The algorithm maps the hot logical block to the young physical block, and the temperature of the cold logical block is mapped to an old physical block. It takes the operating time method to predict the logic block temperature, and using the circular queue to manage the free physical blocks. The simulation algorithm proves the superiority of the LTPA algorithm in wear leveling application.