{'fraction_non_alphanumeric': 0.01948051948051948, 'fraction_numerical': 0.005194805194805195, 'mean_word_length': 5.119047619047619, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Lazy TRIM: Optimizing the journaling overhead caused by TRIM commands on Ext4 file system

Nowadays, NAND flash storage devices have become a standard for secondary storage in consumer electronics devices. Unfortunately, TRIM command for the flash storage causes journaling overhead on the ext4 file system. In this paper, to figure out the root cause of the overhead, we study the relationship between ordered mode journaling and the TRIM command. Then, we propose a novel scheme, called lazy TRIM, that adopts multi-threading in background to gracefully distribute the journaling overhead caused by the TRIM command. Our evaluation results clearly confirm that lazy TRIM improves the latency of the fsync system call by up to 99% compared with the conventional scheme.