Search : [ keyword: 단편화 ] (3)

Analyses of the Memory Usage Efficiency of the Scudo Memory Allocator

KyungSeok Lee, Taehyung Lee, Young Ik Eom

http://doi.org/10.5626/JOK.2023.50.2.103

Optimizing memory usage is important in mobile systems because diverse applications share limited system memory in those systems. Although the default memory allocator of Android, Scudo, is designed to mitigate vulnerabilities related to heap memory and optimize the memory allocation performance, it has inefficiency in terms of memory usage aspects. This paper addresses two problems based on the structure and operation mechanism of Scudo. First, the problems that occur due to the static number of local caches are analyzed. Second, the internal fragmentation problems induced by the inefficient free-chunk management policy are analyzed. The evaluation results show that, according to the characteristics of applications, there are some performance overheads and memory waste due to the static number of local caches in Android systems. Furthermore, we confirm that repeated allocation and free operations fragment almost all allocated physical pages in Scudo; hence pages are not actively reclaimed to the OS even after 90% of allocated chunks are freed.

An Efficient RocksDB Leveling Technique using F2FS Multi-Head Logging

Jeongho Lee, Jonggyu Park, Young Ik Eom

http://doi.org/10.5626/JOK.2022.49.8.655

RocksDB has been considered one of the most representative LSM-tree based key-value stores, and it is actively used in high-performance database systems. However, because of the nature of such database systems, which run for an extended period of time and frequently write to the underlying storage devices, the systems may incur file system-level fragmentation. Additionally, various optimizations in RocksDB may accelerate the file system-level fragmentation under aged systems, which hinders the maintenance of long-term superior performance of flash-based storage devices such as SSDs. In this paper, we first analyze the fragmentation problem of RocksDB on F2FS and propose a new RocksDB leveling technique that exploits F2FS multi-head logging. The experimental results using an SSD confirm that the proposed method improves the throughput by 7% and reduces tail latency by 18%, compared with the conventional F2FS file system, and improves the throughput by 56% and reduces tail latency by 19%, compared with the EXT4 file system.

An Efficient Cleaning Scheme for File Defragmentation on Log-Structured File System

Jonggyu Park, Dong Hyun Kang, Euiseong Seo, Young Ik Eom

http://doi.org/

When many processes issue write operations alternately on Log-structured File System (LFS), the created files can be fragmented on the file system layer although LFS sequentially allocates new blocks of each process. Unfortunately, this file fragmentation degrades read performance because it increases the number of block I/Os. Additionally, read-ahead operations which increase the number of data to request at a time exacerbates the performance degradation. In this paper, we suggest a new cleaning method on LFS that minimizes file fragmentation. During a cleaning process of LFS, our method sorts valid data blocks by inode numbers before copying the valid blocks to a new segment. This sorting re-locates fragmented blocks contiguously. Our cleaning method experimentally eliminates 60% of file fragmentation as compared to file fragmentation before cleaning. Consequently, our cleaning method improves sequential read throughput by 21% when read-ahead is applied.


Search




Journal of KIISE

  • ISSN : 2383-630X(Print)
  • ISSN : 2383-6296(Electronic)
  • KCI Accredited Journal

Editorial Office

  • Tel. +82-2-588-9240
  • Fax. +82-2-521-1352
  • E-mail. chwoo@kiise.or.kr