Abstract:
Provided is an electronic device including a file system, a memory, and a processor. The memory stores at least one instruction that instructs, when executed, the processor to receive a request for access to a file or directory stored in a user data area of the file system. In response to the reception of the request, first information associated with the file or directory is store in the memory, and the size of the file or directory is displayed using the first information. When the first information is information associated with the file, the information indicates the size of the file. When the first information is information associated with the directory, the information indicates a sum of the sizes of all subdirectories and all files included in the directory.
Abstract:
Provided is an electronic device including a file system, a memory, and a processor. The memory stores at least one instruction that instructs, when executed, the processor to receive a request for access to a file or directory stored in a user data area of the file system. In response to the reception of the request, first information associated with the file or directory is store in the memory, and the size of the file or directory is displayed using the first information. When the first information is information associated with the file, the information indicates the size of the file. When the first information is information associated with the directory, the information indicates a sum of the sizes of all subdirectories and all files included in the directory.
Abstract:
A method of managing a memory by an electronic device is provided. The method includes configuring a swap data amount per unit time, identifying an actual use amount of swap data, and comparing the identified actual use amount of the swap data with the configured swap data amount per unit time.