WorksComputer Science
Storage-Centric System Designs for Enabling Fast, Efficient, and Low-Cost Genomic and Metagenomic Analyses
Abstract
Genomic and metagenomic analyses play critical roles in many fields, such as precision medicine, urgent clinical settings, discovering early warnings of communicable diseases, ensuring food safety through pathogen monitoring, agriculture, and scientific discovery. Due to the challenges of analyzing and storing massive volumes of genomic and metagenomic sequence data, significant efforts have been made to accelerate (meta)genomic analyses and store sequence data compressed. Despite the benefits of these techniques, we identify two major outstanding problems in accessing stored sequence data and supplying it to the analysis units: (i) the data movement bottleneck due to moving large amounts of low-reuse data from storage and the unnecessary burden on the rest of the system, and (ii) the data preparation bottleneck, where compressed sequence data needs to be first decompressed and formatted before analysis. In this dissertation, we present customized storage-centric systems, which efficiently (i) analyze (meta)genomic data inside the storage system, and (ii) enable highly-compressed storage and high-performance access of large-scale sequence data, thereby alleviating the overheads of data movement, computation, and data preparation. We demonstrate that the proposed systems significantly improve system performance, energy efficiency, and system cost-efficiency of (meta)genomic analysis. We hope that the storage-centric systems proposed in this dissertation facilitate the broader adoption of (meta)genomic analyses and inspire future research to fundamentally improve the performance, energy efficiency, and cost-effectiveness of other data-intensive application domains related to health and life sciences.
DISS. ETH NO. 31882
A thesis submitted to attain the degree of
DOCTOR OF SCIENCES
(Dr. sc. ETH Zurich)
presented by
Nika Mansourighiasi
born on 03.06.1993
accepted on the recommendation of
Prof. Dr. Onur Mutlu, examiner
Prof. Dr. Can Alkan, co-examiner
Prof. Dr. Reetuparna Das, co-examiner
Prof. Dr. Wen-mei Hwu, co-examiner
Prof. Dr. Jangwoo Kim, co-examiner
Prof. Dr. Yatish Turakhia, co-examiner
2026
Expanding the boundaries of science is challenging in itself.
This dissertation is dedicated to the resilient students and researchers who push science forward while navigating additional challenges beyond their scientific endeavors, such as illness, poverty, bureaucratic hurdles, and the consequences of conflicts not of their making.
Acknowledgments
This PhD has been a challenging yet extremely rewarding journey for me, in which I not only worked to push the boundaries of science but also expanded the boundaries of my own capabilities. This thesis is a snapshot of part of my research journey so far. I will take this opportunity to thank the people who shared their knowledge, support, and kindness with me along the way.
I first learned about computer architecture while following my interests in both engineering and art. While pursuing computer architecture further, I came across Professor Onur Mutlu’s online lectures as an embodiment of this intersection between engineering and art. Starting from the first lecture, Onur introduced computer architecture through analogies between “how computers and computer architects evolve” and “how art and artists evolve.” I immediately knew that this was someone from whom I wanted to learn much more. I am incredibly happy and grateful that I eventually had the opportunity to pursue my PhD with Onur. I arrived in Onur’s group with a love for computer architecture and art, and I was pleasantly surprised by everything else I additionally encountered: freedom, borderless curiosity, courage, genuine excitement, strong rigor and care for the craft, inclusion, and diversity. Now, looking back, I realize it was only natural, as these are the very same qualities that both art and science nurture. I extend my deepest gratitude to Onur for creating such a beautiful environment for learning, exploration, and growth. It has been an immense experience and honor to have him as a teacher, and I hope to continue learning from him throughout the rest of my journey.
I am deeply grateful to my close mentors and collaborators. I thank Professor Jisung Park for his strong technical mentorship, friendship, and for believing in me at times I could not do so myself. I am grateful to Dr. Mohammad Sadrosadati for his profound insights and interesting discussions in computer architecture and many other realms. I extend my deep gratitude to Professor Subhasish Mitra for advising me during my visiting research period in his group at Stanford University and for his continual guidance in pursuing bold and ambitious research topics. I am grateful to Professor Nandita Vijaykumar for sharing deep insights about research and being a researcher, which played key roles in my academic journey. I am thankful to Dr. Juan Gomez Luna for his mentorship during my master’s studies and his great attention to technical details. I am deeply grateful to Professor Zain Navabi, who was among the first to introduce me to computer architecture as an intersection of engineering and art during my undergraduate studies at the University of Tehran.
I also extend my sincere gratitude to my doctoral exam committee members: Professor Can Alkan, Professor Reetuparna Das, Professor Wen-mei Hwu, Professor Jangwoo Kim, and Professor Yatish Turakhia. Discussions with them and their constructive feedback greatly strengthened this thesis and also sparked interesting ideas for future research. I thank Professor Morteza Aramesh for chairing my doctoral exam.
I thank all current and past members of the SAFARI Research Group for creating such a stimulating, inclusive, and family-like environment for doing research and experiencing life. I am especially thankful to my PhD buddies, Konstantinos Kanellopoulos and Rahul Bera. We started our PhDs at roughly the same time and had the chance to grow together as researchers and friends. Their friendship, support, genuine love for their research craft, and creativity made this long journey not only possible, but also pleasant. I thank Geraldo Francisco de Oliveira Junior for his pure heart and the light and joy he emanates to those around him. I learned a lot from him about processing-in-memory, gym exercises, and the joy of creating and sharing beautiful things (e.g., birthday cakes). I thank Can Firtina for many interesting collaborations, details about -mers and methylation, and his sense of humor. I thank Abdullah Giray Yaglikci, Nisa Bostanci, Ataberk Olgun, Sahand Divsalar, Haiyu Mao, and Ismail Yuksel for their pure kindness and friendship. I thank Lois Orosa and Yaohua Wang for their kindness, friendship, and wisdom in the early parts of my journey in SAFARI. I thank Rakesh Nadig, Damla Senol Cali, Jeremie Kim, Konstantina Koliogeorgi, Rachata Ausavarungnirun, and Banu Cavlak for great collaborations and discussions. I also sincerely thank my great mentees for what they achieved and for teaching me how to teach. I am especially thankful to Talu Güloglu, whose hard work and strong motivation (along with frequently humming joyful Christmas songs at any time of the year) played a key role in realizing some of the mechanisms introduced in this thesis, and to Eirini Tzermpou, Marc Rautmann, Timur Eke, and Wonyoung Cheon for the great time we have had working together so far. I also extend my deep gratitude to other past and present SAFARI members, especially Minesh Patel, Hasan Hassan, Christina Giannoula, Harshita Gupta, Mayank Kabra, Andreas Kosmas Kakolyris, Konstantinos Sgouras, Maria Makeenkova, Haocong Luo, Gagandeep Singh, and Zhiheng Yue. I thank Tracy Ewen for her kindness, wisdom, and help with many challenging administrative matters. I also thank Tulasi Blake for her administrative support.
Beyond the lab, I am incredibly fortunate to have amazing friendships that not only supported me immensely throughout my PhD but also deeply enriched my experience of life. I thank Mehrasa for being such a pure, bright, and beautiful expression of friendship in this world. I feel extraordinarily lucky to experience a friendship like ours. Her unwavering presence, even from another continent, has been a key source of my persistence through the ups and downs of research and life. I sincerely thank Yasmin for her kindness, patience, and for teaching me how to study deeply. I am grateful for our journey of studying, growth, and friendship. I thank Hashem for introducing me to computer architecture, many poems, and how computer architecture relates to some of those poems. I find his courage to wonder and his love to learn inspiring, in both research and life. I thank Julia for her joyful kindness, lively creativity, and for sharing her wisdom and support during some of the most difficult times of my life. I am also grateful to the avocado that initially sparked our friendship. I thank Pascal. Without his presence, I might never have started my PhD journey; had I started, I might not have finished it; and had I finished it, I certainly would not have explored life with as much depth along the way. I am grateful to Poulami for her positivity, inspiring strength, and generous advice, ranging from research journey in computer architecture to the housing market in Zurich. I thank Vesna, Michael, Aditi, and Niloofar, who taught me that friendship and profound connections persist through time and distance, even when life does not contain situations for us to meet so frequently.
Most importantly, I thank my family. I am grateful to my mother, Mehrangiz, for everything. Her name in Persian means “the one who inspires kindness and love,” and I think it is such a fitting name. Like rays of sunshine, her love, kindness, strength, and wisdom bring light and warmth into my life. Yet unlike sunshine, which comes and goes, her light and warmth have always been there: constant, unwavering, and present. I thank my father, Amir, for supporting me throughout my education and for the experiences that led to me gaining a deeper understanding of myself. I thank my lovely brother, Ali, for his kindness and for tolerating me, as I was busy studying since the moment he opened his eyes to this world. While I hope to keep studying and learning in the rest of my journey, I dearly hope and will do my best to be a lot more present in our connection. I am grateful to my late grandmother, Narges, and Khaleh Golshan for their pure and strong love. They showed me that true love does not die, and such a fundamental understanding this is. I thank my uncle Masoud, aunt Mina, and cousin Mana for making me feel at home during my undergraduate studies in Tehran (particularly during the snowy seasons). I thank my cousins Arash and Azadeh for their kindness and support through the ups and downs of my life these past years. I thank Arash for introducing me to mindfulness, whose impact probably deserves its own chapter, if not a book. I am grateful to my husband’s family, Tuncel, Niyazi, and Hazal, who supported me strongly and kindly throughout my PhD journey.
Finally, I thank my husband, Harun, who is my best friend and collaborator in life and research. I am thankful for his pure kindness, patience, knowledge, imagination, morality, and for teaching me about what I consider the most important element in life: unconditional love.
rage systems.
Zusammenfassung
hierfür einen grundlegenden Lösungsansatz, da die Daten dort verarbeitet werden, wo sie gespeichert sind. Um zudem den Engpass bei der Datenvorbereitung zu entschärfen, entwickeln wir einen Algorithmus-Architektur-Co-Design-Ansatz für hochkomprimierte Speicherung und leistungsfähigen Zugriff auf Sequenzdaten.
Erstens stellen wir GenStore vor, das erste In-Storage-Processing-System für die Genomanalyse. Wir entwerfen kostengünstige In-Storage-Beschleuniger, die direkt im Speichergerät genomische Daten zuverlässig herausfiltern, deren weitere Analyse keine aufwendigen Berechnungen erfordert. Zweitens präsentieren wir MegIS, das erste In-Storage-Processing-System, das den Datentransfer über die gesamte Metagenomik-Analysepipeline hinweg deutlich reduziert. Die Kernidee von MegIS ist ein kooperativer SCC-Ansatz für die Metagenomik: Anstatt die Verarbeitung ausschliesslich in das Speichersystem zu verlagern, nutzen wir gezielt die jeweiligen Stärken der Verarbeitung sowohl innerhalb als auch ausserhalb des Speichersystems.
Drittens schlagen wir GRAINS vor, das erste System zur Analyse sehr grosser (meta-)genomischer Sequenzgraphen direkt im Speichergerät. Auf Grundlage einer detaillierten Untersuchung typischer Analysepipelines auf grossen Sequenzgraphen verfolgen wir einen auf das Speichersystem abgestimmten Algorithmus-Architektur-Co-Design-Ansatz, um () die Pipelines für die Verarbeitung im Speichersystem zu optimieren und () Leistung, Energieeffizienz und Kosteneffizienz durch In-Storage- und In-Flash-Processing zu verbessern.
Viertens stellen wir SAGe vor, einen Algorithmus-Architektur-Co-Design-Ansatz für die hochkomprimierte Speicherung und den leistungsfähigen Zugriff auf grosse Mengen von Sequenzdaten, mit dem wir den Engpass bei der Datenvorbereitung entschärfen. SAGe beruht auf der zentralen Erkenntnis, dass die in genomischen Daten kodierte Information charakteristische Muster aufweist, die etwa durch die Sequenzierungstechnologie und typische genetische Phänomene geprägt werden. Durch die gezielte Nutzung dieser Eigenschaften und das Co-Design von Algorithmen und Hardware erzielt SAGe Kompressionsverhältnisse, die mit denen modernster genomischer Kompressionsverfahren vergleichbar sind, und ermöglicht zugleich geringe Dekompressionslatenzen. Dabei kommt SAGe mit leichtgewichtiger Hardware und effizienten Streaming-Zugriffen aus. Schliesslich zeigen wir, wie sich unsere Ansätze kostengünstig in einem Gesamtsystem integrieren lassen.
Wir zeigen, dass speicherzentrierte Systeme, die () (meta-)genomische Daten effizient direkt im Speichersystem analysieren und () eine hochkomprimierte Speicherung und einen leistungsfähigen Zugriff auf grosse Mengen an Sequenzdaten ermöglichen, den durch Datentransfers aus dem Speichersystem entstehenden Aufwand verringern, die gesamte Rechenlast reduzieren und den Engpass bei der Datenvorbereitung entschärfen. Die vorgeschlagenen Systeme verbessern Systemleistung, Energieeffizienz und Kosteneffizienz der (Meta-)Genomanalyse erheblich. Wir hoffen, dass die in dieser Dissertation vorgestellten speicherzentrierten Systeme den breiteren Einsatz genomischer und metagenomischer Analysen erleichtern und künftige Forschung dazu anregen, auch die Leistung, Energieeffizienz und Kosteneffizienz anderer datenintensiver Anwendungsbereiche der Gesundheits- und Lebenswissenschaften grundlegend zu verbessern.
Introduction
Genome sequence analysis, which examines the genomic information of living organisms and other biological entities, plays an important role in many fields, such as personalized medicine [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], tracing outbreaks of communicable diseases [34, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], cancer research [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], ensuring food safety through pathogen monitoring [?, ?], agriculture [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 121, ?, ?, ?], scientific discovery [?, ?, ?], biodiversity conservation [?, ?], evolutionary biology [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], and antimicrobial resistance surveillance [?, ?, ?]. To analyze genomic information computationally, a sample of an organism’s or a biological entity’s genetic material, typically DNA or RNA that has been reverse-transcribed into DNA [?, ?], undergoes a process called sequencing [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. Sequencing converts the information from DNA molecules to digital data. Current sequencing technologies cannot sequence long DNA molecules end-to-end. Instead, state-of-the-art sequencers generate randomly- and redundantly-sampled smaller and inexact DNA fragments, called reads. Sets of genomic reads (called read sets) are then used in genomic analysis. Traditional genomics analyzes genome sequences of a genomic sample from an individual (or a small group of individuals) of the same known species.
Since sometimes a sample contains organisms or biological entities with different species present in a common environment (e.g., human gut, soil, or oceans), genomic analysis is complemented by metagenomic analysis [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. Metagenomic analysis refers to the study of the genome sequences of various organisms or biological entities with different species present in a common environment. Since metagenomics deals with genome sequences whose species are not known in advance in many cases, it requires comparisons of the target sequences against large databases of many reference genomes. Metagenomics has led to groundbreaking advances in many fields, such as precision medicine [?, ?, ?, ?, ?, ?], urgent clinical settings [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], understanding microbial diversity of an environment [?, ?, ?, ?, ?, ?, ?], discovering early warnings of communicable diseases [?, ?, ?, ?], and outbreak tracing [?, ?, ?, ?].
As genomic databases grow in complexity, graph-based (meta)genomic analysis has emerged as a powerful approach for querying of massive and complex (meta)genomic databases [?, ?, ?, ?, ?, ?, ?, ?]. Sequences in a graph are represented by graph walks [?]. Genome graphs provide two fundamental benefits, making them indispensable, particularly in modern, population-scale genomics [?, ?, ?, ?, ?]. First, the graph topology, along with its associated metadata1 offers vastly strong expressive power [?, ?, ?, ?]. A graph naturally encodes the evolutionary history and diversity of the organisms in a database, revealing their shared and distinct sequences [?, ?, ?, 243]. This leads to reduced bias and improved analysis accuracy. For example, genome graphs improve disease diagnosis by capturing population-specific variants often missed by traditional, linear sequences [?, ?, ?]. Second, genome graphs leverage the inherent redundancy of genomic data to avoid redundant computation on shared sequences. This is because shared genomic regions across database entries are stored only once and do not need to be queried separately.
The adoption of genomic and metagenomic analyses has been rapidly increasing in recent years [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], driven by their critical importance and the rapid advancement of sequencing technologies (i.e., reduced costs and increased throughput [?]). These factors have led to exponential growth in genomic and metagenomic sequence data generation. Figure 1.1 demonstrates an example of the growth of the Sequence Read Archive (SRA) [1] data volumes after the breakthroughs in low-cost, high-throughput sequencing, highlighting the significantly larger growth rate of sequence data (by more than three orders of magnitude) compared to Moore’s Law projections [2, ?].2 Analyzing large-scale sequence data
Figure 1.1. Growth rate (log scale) of the Sequence Read Archive (SRA) [1] data volumes compared to Moore’s Law projections [2, ?].
on conventional, general-purpose systems poses significant challenges due to three reasons, as we describe next.
First, the sequencing and basecalling steps for a sample are usually one-time tasks [?, ?, ?]. In many cases, the reads from a single sequenced sample can be analyzed by multiple studies or at different times in the same study. This is because (i) there are many heuristics and parameters involved in (meta)genomics, which need to be tuned to achieve a desired sensitivity-specificity tradeoff [?], (ii) there are different databases created with different parameters or genomes that need to be used for achieving different accuracy goals [?], and (iii) a sample can be analyzed several times with reference genomes or databases that are regularly updated, personalized, or task-specific [?, ?, ?, ?, ?, ?, ?, ?, ?].
Second, even when performing the (meta)genomic analysis step only once for a sample, the throughput of this step is significantly lower than the sequencing throughput of modern sequencers (e.g., [?]). While sequencing one sample can take a long time, a single sequencing machine can sequence many samples from different sources in parallel [?, ?], achieving very high throughput. As an example, our analysis with a state-of-the-art metagenomic tool [?] shows that analyzing the data, sequenced and basecalled by a sequencer in 48 hours, takes 38 days on a high-end server node (detailed configurations in Chapter 5). Such long analysis poses serious challenges, specifically for time-critical use cases that require fast decision making (e.g., clinical settings [?] and timely surveillance of infectious diseases [?]). Since the growth rate of sequencing throughput is higher than Moore’s Law [?, ?], this already large gap between sequencing and analysis throughput is widening [?, 266, 267, ?], and simply scaling up traditional systems for analysis is not efficient.
Third, the development of sequencing technologies that enable analysis during sequencing [?, ?, ?, ?, ?, ?, ?] increasingly necessitates the need for fast analysis that can keep up with sequencing throughput. The possibility to perform analysis during sequencing enables new features, where sequencing can be dynamically stopped once a target pathogen is identified, or sufficient coverage is reached [34, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 282, ?, ?, ?, ?, ?, ?]. Therefore, to achieve this feature, the analysis throughput must match or exceed the sequencing throughput. Otherwise, the analysis step bottlenecks the entire process and makes this feature impractical in time-critical settings.
The analysis step is also the primary energy bottleneck in the workflow, and optimizing its efficiency is vital as sequencing technologies rapidly evolve. For example, a high-end sequencer [?] uses 405 KJ to sequence and basecall 100 million reads, with 92.5 Mbp/s throughput and 2,500 W power consumption [?]. In contrast, processing this dataset on a commodity server (detailed configurations in Chapter 5) requires 675 KJ, accounting for 63% of the total energy of the workflow. The need to enhance the analysis’ energy efficiency is further increasing for two reasons. First, sequencing efficiency has been continually improving. For example, a new version of Illumina sequencer from 2023 [?] provides higher throughput at only higher power consumption compared to an older version [?] from 2020, resulting in much better sequencing energy efficiency. Therefore, simply relying on scaling up commodity systems to improve the analysis throughput worsens the energy bottleneck. Second, the increased adoption of compact portable sequencers [?] for on-site (meta)genomics (e.g., in remote locations [?] or for personalized bedside care [?]) offers high-throughput sequencing with low energy costs. The drive towards portability further amplifies the need for energy- and cost-effective analysis that can match the portability and convenience of these sequencers.
Due to the challenges of analyzing and storing massive volumes of genomic and metagenomic data, significant efforts have been made in two directions: () Accelerating genomic and metagenomic analyses, and () Storing genomic and metagenomic data in compressed forms.
Accelerating Genomic and Metagenomic Analysis. There have been extensive efforts to improve the performance and energy efficiency of genomic and metagenomic analysis. For genomics, many works propose efficient heuristics and algorithmic optimizations (e.g., [?, ?, ?, 294, ?, ?, ?, ?, 299, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]), hardware accelerators (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, ?, ?, 366, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]), various filters that try to efficiently and accurately prune reads that do not require expensive computation (e.g., [299, ?, 363, 366, 416, 417, ?, 419, ?, 421, 422, 423, 424, ?, ?, ?]). For metagenomics, many works propose algorithmic optimizations (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 435, ?, ?, ?, ?]), sampling to reduce database sizes, usually at the cost of accuracy loss (e.g., [?, 435, ?, ?, ?, ?]), and hardware acceleration (e.g., [4, 34, 121, 282, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453]).
Storing Genomic and Metagenomic Data in Compressed Forms. It is common practice to store genomic and metagenomic sequence data in compressed forms [?, ?, ?, ?, ?, ?] because storing uncompressed sequence data is impractical due to its massive size. In fact, due to the importance of storing sequence data in a space-efficient manner, there exist many compression techniques (e.g., [?, 459, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) specialized for sequence data to achieve significantly higher compression ratios than state-of-the-art general-purpose compression methods (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]).
Problem Discussion
Although there have been significant efforts to improve the analysis and storage of large-scale genomic and metagenomic data, we identify major outstanding problems in accessing stored sequence data and feeding it to the analysis units.
Overhead of Moving Large Amounts of Low-Reuse Data from the Storage System to Main Memory and Computation Units. Genomic and metagenomic analyses incur unnecessary data movement from the storage system for large amounts of low-reuse data. In genomics, while existing filters prune many reads to avoid expensive computation, they still need to first read the entire read set from the storage system all the way to the main memory, processor-side caches, and register files, even though a large fraction of the reads would be filtered out and not be reused in the analysis. Chapter 4 analyzes the state-of-the-art genomic analysis tools and accelerators and finds that the movement of large amounts of low-reuse genomic data from the storage system significantly hinders the end-to-end performance and energy-efficiency of genomic analysis due to storage I/O (input/output) overheads and unnecessary computational burden on the rest of the system. As we demonstrate in Chapter 4, these overheads can bottleneck the performance and energy of genomic analysis in both conventional (software-based) and emerging (hardware-accelerated) genomics systems, while having a larger impact on systems that reduce other (e.g., computation and main memory) bottlenecks [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, ?, ?, 366, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?].
In metagenomics, analysis also suffers from significant data movement overhead due to the need to access large amounts of low-reuse data. Since we do not know the species present in a metagenomic sample, metagenomic analysis requires searching large databases (e.g., several TBs [?, ?, ?, ?, ?, ?] or more than a hundred TBs in emerging databases [?, ?]) that contain information on different organisms’ genomes. Database sizes are expected to increase further in the future, and at a fast pace.3 Two notable reasons for this growth are 1) the rapid evolution of viruses and bacteria [?], which necessitates frequent updates with new reference genomes [?, ?], and 2) the fact that databases may include sequences from both highly curated reference genomes and from less curated metagenomic sample sets [?, ?]. Particularly, as over 99% of Earth’s microbes remain unidentified and excluded from curated reference genome databases [?, ?], the expanded databases improve sensitivity [?]. Recent advances in the automated and scalable construction of genomic data from more organisms have further contributed to database growth by enabling the rapid addition of new sequences to databases [?, ?]. As we demonstrate in Chapter 5, data movement overhead from the storage system to the rest of the system significantly impacts the end-to-end performance and energy efficiency of the state-of-the-art metagenomic analysis tools. Due to its low reuse, the data needs to move all the way from the storage system to the main memory, processor-side caches, register files, and processing units for its first use, and it will likely not be used again or reused very little during analysis. This unnecessary data movement, combined with the low computation intensity of metagenomic analysis and the limited I/O bandwidth, leads to large storage data movement overheads for metagenomic analysis. The impact of this overhead becomes even larger on systems that reduce other (e.g., computation and main memory) bottlenecks [4, 34, 121, 282, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453].
As we demonstrate in Chapter 6, the overhead of moving large amounts of low-reuse data from the storage system and its burden on the rest of the system is also significant in graph-based (meta)genomic analysis. Our evaluation using the state-of-the-art tools for analysis with large-scale genome graphs shows that this overhead significantly hinders their end-to-end performance and energy efficiency.
Data Preparation Bottleneck. In this dissertation, we introduce and extensively analyze the data preparation bottleneck, where compressed genomic sequence data needs to be first decompressed and formatted before it can be analyzed. As we demonstrate in Chapter 7, the benefits of prior works on accelerating genome sequence analysis are significantly diminished due to this bottleneck. For example, Figure 1.2 shows the execution timeline of data preparation and genome analysis for a real-world genomic dataset (Chapter 7) in three different configurations. The evaluated analysis task is read mapping, a fundamental process in genomics (Section 2.2). The configurations are () Baseline: a state-of-the-art software analysis tool [294] with a state-of-the-art software genomic decompressor for data preparation [459]; () Acc. Analysis: a state-of-the-art hardware-accelerated analysis tool [513] with the same data preparation as Baseline; () Acc. Analysis w/ Ideal Prep.: the same accelerated analysis with ideal preparation, where preparation is overlapped with analysis. For all configurations, preparation and analysis operate in a pipelined manner and in batches (i.e., when decompressing batch #, the mapper analyzes batch #). Decompressed data batches are directly fed to the analysis stage. We observe that ➊ hardware acceleration of genome analysis can potentially offer substantial performance benefits; ➋ however, as analysis gets faster, data preparation emerges as a critical bottleneck that hinders the full realization of these benefits. In Chapter 7, we further demonstrate and extensively analyze this bottleneck across various real-world scenarios.
Figure 1.2. Effect of data preparation (i.e., decompressing and formatting genomic sequence data before analysis) on genome analysis performance.
Goal
The goal of this dissertation is to (i) alleviate the data movement overheads of genomics and metagenomics analyses from the storage system and reduce the computational burden from the rest of the system, and (ii) mitigate the data preparation bottleneck while achieving high performance, energy efficiency, and compression ratios. We aim for our proposed designs to be lightweight such that they can seamlessly integrate with a broad range of genomic and metagenomic analysis systems.
Thesis Statement
The following thesis statement encompasses our approach:
By designing customized storage-centric systems that efficiently 1) analyze genomic and metagenomic data inside the storage system 2) enable highly-compressed storage and high-performance access of large-scale sequence data, we can alleviate data movement overheads from the storage system, reduce the computational burden from the rest of the system, and mitigate the data preparation bottleneck, thereby significantly (e.g., by one to two orders of magnitude) improving system performance, energy efficiency, and cost of genomic and metagenomic analysis.
Our Approach
To alleviate the overheads of moving large amounts of low-reuse sequence data from the storage system and reduce the overall computational burden from the rest of the system, we propose storage-centric computing (SCC) systems for 1) genomic analysis, 2) metagenomic analysis, and 3) graph-based (meta)genomic analysis, which plays critical roles in population-scale scenarios. SCC refers to processing data inside the storage device, either on the SSD controller (in-storage processing, i.e., ISP) or on the flash dies (in-flash processing, i.e., IFP). SCC can be a fundamental solution for alleviating this data movement overhead by processing data where it originally resides. To mitigate the data preparation bottleneck, we propose an algorithm-architecture co-design for highly-compressed storage and high-performance access of sequence data. In the rest of this section, we briefly overview our new mechanisms developed as part of this dissertation.
In-Storage Filters for Genomic Analysis
Read mapping [?, ?, 299, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, ?, 366, ?, ?, ?, 417, 421, 422, 423, 424, ?, 514, ?, ?] is a fundamental step in many genomics applications. It is used to identify potential matches and differences between reads of a sequenced genome and an already known genome (called a reference genome). Read mapping is costly because it needs to perform approximate string matching (ASM) [?, ?, 363, 366, 421, 422, 423, 424, ?, 518, 519, ?] on large amounts of data. To address the computational challenges in genomic analysis, many prior works (e.g., [?, ?, ?, ?, 294, ?, ?, ?, ?, 299, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, ?, ?, 366, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) propose various approaches such as accurate filters that select the reads within a dataset of genomic reads (called a read set) that must undergo expensive computation, efficient heuristics, and hardware acceleration. While effective at reducing the amount of expensive computation, all such approaches still require the costly movement of a large amount of data from storage to the rest of the system, which significantly lowers the end-to-end performance of read mapping in conventional and emerging genomics systems.
This dissertation introduces GenStore, the first in-storage processing system designed for genomic analysis that significantly reduces both storage data movement and computational overheads of genomic analysis by exploiting low-cost and accurate in-storage filters. GenStore leverages hardware/software co-design to address the challenges of in-storage processing, supporting reads with 1) different properties such as read lengths and error rates, which highly depend on the sequencing technology, and 2) different degrees of genetic variation compared to the reference genome, which highly depends on the genomes that are being compared. Through rigorous analysis of read mapping processes of reads with different properties and degrees of genetic variation, we meticulously design low-cost hardware accelerators and data/computation flows inside a NAND flash-based solid-state drive (SSD).
Our evaluation using a wide range of real genomic datasets shows that GenStore, when implemented in three modern NAND flash-based SSDs, significantly improves the read mapping performance of three state-of-the-art software (hardware) baselines [294, ?, 419] by 2.07-6.05 (1.52-3.32) for read sets with high similarity to the reference genome and 1.45-33.63 (2.70-19.2) for read sets with low similarity to the reference genome. Our energy analysis shows that GenStore reduces energy consumption by on average (up to) 3.92 (3.97) for read sets with high similarity to the reference genome, and on average (up to) 27.17 (29.25) for read sets with low similarity to the reference genome.
GenStore is published at the International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) in 2022 [?]. It is fully open-sourced at [?]. An extended version of the ASPLOS 2022 paper is available on arXiv [?]. A significant amount of work (e.g., [?, ?, ?, ?, ?, ?, ?, ?]) has already been influenced by GenStore, as we discuss in Chapter 4.
Cooperative In-Storage Processing for Metagenomic Analysis
Since the species present in a metagenomic sample are not known in advance, metagenomic analysis commonly involves the key tasks of determining the species present in a sample and their relative abundances. These tasks require searching large metagenomic databases containing information on different species’ genomes. Metagenomic analysis suffers from significant data movement overhead due to moving large amounts of low-reuse data from the storage system to the rest of the system. In-storage processing can be a fundamental solution for reducing this overhead. However, designing an in-storage processing system for metagenomics is challenging because none of the existing tools for metagenomic analysis can be directly implemented in storage effectively due to the hardware limitations of modern SSDs.
This dissertation proposes MegIS, the first in-storage processing system designed to significantly reduce the data movement overhead of the end-to-end metagenomic analysis pipeline. The key idea of MegIS is to enable cooperative ISP for metagenomics, where we do not solely focus on processing inside the storage system but, instead, we capitalize on the strengths of processing both inside and outside the storage system. We enable cooperative ISP via a synergistic hardware/software co-design between the storage system and the host system. We design MegIS as an efficient pipeline between the SSD and the host system to (i) leverage and (ii) orchestrate the capabilities of both. Based on our rigorous analysis of the end-to-end metagenomic analysis pipeline, we propose a new hardware/software co-designed accelerator framework that consists of five aspects. First, we partition and map different parts of the metagenomic analysis pipeline to the host and the ISP system such that each part is executed on the most suitable architecture. Second, we coordinate the data/computation flow between the host and the SSD such that MegIS (i) completely overlaps the data transfer time between them with computation time to reduce the communication overhead between different parts, (ii) leverages SSD bandwidth efficiently, and (iii) does not require large DRAM inside the SSD or a large number of writes to the flash chips. Third, we devise storage technology-aware metagenomics algorithm optimizations to enable efficient access patterns to the SSD. Fourth, we design lightweight in-storage accelerators to perform MegIS’s ISP functionalities while minimizing the required SRAM/DRAM buffer spaces inside the SSD. Fifth, we design an efficient data mapping scheme and Flash Translation Layer (FTL) specialized to the characteristics of metagenomic analysis to leverage the SSD’s full internal bandwidth. MegIS’s design is flexible, capable of supporting different types of metagenomic input datasets, and can be integrated into various metagenomic analysis pipelines.
Our evaluation shows that MegIS outperforms two state-of-the-art performance- and accuracy-optimized software metagenomic tools [?, 435] by – and –, respectively, while matching the accuracy of the accuracy-optimized tool. MegIS achieves – speedup compared to the state-of-the-art metagenomic hardware-accelerated (using processing-in-memory [4]) tool, while achieving significantly higher accuracy. MegIS provides large average energy reductions of and compared to software and hardware performance-optimized baselines, respectively, and compared to the accuracy-optimized baseline.
MegIS is published at the International Symposium on Computer Architecture (ISCA) in 2024 [?]. It is fully open-sourced at [?]. An extended version of the ISCA 2024 paper is available on arXiv [?]. MegIS has already influenced several subsequent works (e.g., [?, ?, ?, ?, ?]) as we discuss in Chapter 5.
Storage-Aware Algorithm-Architecture Co-Design for Graph-Based Genomic and Metagenomic Analyses
Graph-based representations of genomic and metagenomic sequences have emerged as a powerful approach for representing massive sequence databases in an expressive and efficient manner [?, ?, ?, ?, ?, ?, ?, ?]. Compared to traditional, linear sequences, sequence graphs enable more accurate and efficient genomic and metagenomic analyses, particularly in complex, population-scale settings, such as public health, precision medicine, and agriculture. Despite its benefits, analysis on large-scale sequence graphs incurs significant data movement overhead from the storage system due to accessing large amounts of low-reuse data. Processing data directly inside the storage device, where data originally resides, can be a fundamental solution for mitigating this overhead. However, none of the existing tools for graph-based genomic and metagenomic analyses (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) can be efficiently implemented inside the storage system due to the limited internal hardware resources in modern SSDs. At the same time, prior storage-centric systems developed for (i) traditional, linear non-graph-based genomic and metagenomic analyses (e.g., [?, ?, ?, ?, ?, ?, ?]) or (ii) conventional, non-genomic graph analysis (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?]) are unsuitable for the unique data structures and access patterns of graph-based genomic and metagenomic analysis.
This dissertation introduces GRAINS, the first system for analysis on large-scale genomic and metagenomic sequence graphs in storage. Through our detailed examination of typical analysis pipelines on large-scale sequence graphs, we perform storage-aware algorithmarchitecture co-design to (i) make the pipelines more storage-friendly and (ii) improve performance, energy-efficiency, and cost-effectiveness via in-storage and in-flash processing. GRAINS’s co-design is based on three key aspects. First, we propose a new batching technique and execution flow, based on unique features of sequence graphs, that reduces the number of random storage accesses. Second, via in-flash and in-storage processing, we avoid transferring low-reuse or unused flash pages, preventing SSD channel and external I/O bandwidth waste. Third, to enable leveraging the full parallelism of all flash dies during in-flash processing, we design an effective, yet lightweight, scheduling technique, enabled by re-purposing the existing SSD structures in a new way. GRAINS’s design is versatile and flexible as it supports major operations on sequence graphs and can be integrated in various analysis pipelines.
Our evaluation shows that GRAINS provides – speedup over the state-of-the-art software baselines [?, ?, ?, ?], and – speedup over a hardware-accelerated (with processing-in-memory) baseline. GRAINS provides significantly higher energy efficiency of on average and over software and hardware baselines, respectively.
GRAINS is published at the International Symposium on Computer Architecture (ISCA) in 2026 [?]. We plan to open-source GRAINS to facilitate future research. An extended version of the ISCA 2026 paper is available on arXiv [?].
Algorithm-Architecture Co-Design for Highly-Compressed Storage and High-Performance Access of Sequence Data
Given the importance of genomics and the exponentially growing volumes of sequence data, there are extensive efforts to accelerate genomic analysis (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, ?, ?, 366, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]). In this work, we demonstrate a major bottleneck that significantly limits and diminishes the benefits of state-of-the-art genomic analysis accelerators: the data preparation bottleneck, where genomic sequence data is stored in compressed form and needs to be first decompressed and formatted before an accelerator can operate on it.
To mitigate the data preparation bottleneck, this dissertation proposes SAGe, an algorithm-architecture co-design for highly-compressed storage and high-performance access of large-scale genomic sequence data. The key challenge is to improve data preparation performance while maintaining high compression ratios (comparable to genomic-specific compression algorithms) at low hardware cost. SAGe addresses this challenge based on the key insight that the information encoded in genomic data follows specific trends, shaped by factors such as sequencing technology (e.g., error rates and read lengths) and common genetic phenomena (e.g., typical spatial distributions of genetic variations within genomes). By carefully exploiting these characteristics to synergistically co-design algorithms and hardware, SAGe achieves high compression ratios, comparable to state-of-the-art genomic compressors, while enabling low decompression latencies, using only lightweight hardware and efficient streaming accesses. SAGe’s co-design consists of new () lossless (de)compression algorithm, () hardware that decompresses data with lightweight operations and efficient streaming accesses, () storage data layout, and () interface commands to access data. SAGe is highly versatile, as it supports datasets from different sequencing technologies and species. Due to its lightweight design, SAGe can be seamlessly integrated with a broad range of hardware accelerators for genome sequence analysis to mitigate their data preparation bottlenecks.
Our results demonstrate that SAGe improves the average end-to-end performance and energy efficiency of two state-of-the-art genome sequence analysis accelerators [513, ?] by – and –, respectively, compared to when the accelerators rely on state-of-the-art software and hardware decompression tools.
SAGe is published at the IEEE International Symposium on High-Performance Computer Architecture (HPCA) in 2026 [?]. We plan to open-source SAGe to facilitate future research. An extended version of the HPCA 2026 paper is available on arXiv [?].
Putting It All Together
This dissertation proposes various storage-centric designs for addressing the problems of data movement overheads from the storage system and data preparation bottleneck in genomic and metagenomic analyses. In Chapter 8, we describe how to combine all proposed designs (i.e., GenStore, MegIS, GRAINS, and SAGe) into a unified system. First, we motivate the need for such a system by explaining how it () mitigates both data movement overheads and data preparation bottleneck, and enables SCC without relying on large-scale (meta)genomic data to be stored in uncompressed formats, and () can facilitate wider adoption of the proposed designs since the unified system can support a wide range of critical genomic and metagenomic analysis tasks at low cost. Given that the unified system can merge common hardware components across designs (e.g., specific buffers used in each design), it has a smaller area compared to the sum of the areas of the individual designs. Second, we discuss the design details of the unified system. Finally, we show that the unified system provides significant benefits while still maintaining low costs.
Figure 1.3 provides an overview of the proposed designs and specifies the chapters in which they are discussed.
Figure 1.3. Overview of the proposed designs and the chapters in which they are discussed.
Contributions
This dissertation makes the following contributions:
We identify that although there have been significant efforts to improve the analysis and storage of large-scale genomic and metagenomic data, there remain two major problems in accessing the stored data and feeding it to the analysis units: 1) the overhead of moving large amounts of low-reuse data from the storage system to main memory and computation units, and 2) the data preparation bottleneck, where compressed genomic sequence data needs to be first decompressed and formatted before it can be analyzed. We develop a comprehensive understanding of how these two major problems hinder the end-to-end performance of genomic and metagenomic analyses.
Chapters 4, 5, and 6 demonstrate our detailed and comprehensive empirical analysis of the effects of storage data movement overheads.
Chapter 7 demonstrates our detailed analysis of the data preparation bottleneck.
We make the case for and quantitatively substantiate the benefits of storage-centric system designs to fundamentally alleviate data movement overheads from the storage system (by analyzing data directly inside the storage system, where it originally resides) and to mitigate the data preparation bottleneck in genomics and metagenomics. Despite the benefits of storage-centric systems, designing such systems is challenging due to the hardware limitations of modern storage systems. By addressing these challenges, we demonstrate novel examples of storage-centric system designs: GenStore, MegIS, GRAINS, and SAGe.
We propose GenStore (Chapter 4), the first in-storage processing system designed for genomic analysis. We design low-cost in-storage accelerators to accurately filter out
reads that do not require the expensive ASM computation during read mapping, directly inside the storage device.
Contributions
We address the challenges of storage-centric computing with hardware/software co-design in three key directions. First, based on our detailed analysis of read mapping, we design two different accelerators that can accelerate a wide range of read mapping applications. Each accelerator filters a large fraction of genomic read datasets using simple operations. Second, we develop storage technology-aware algorithmic optimizations to replace expensive random accesses with more efficient sequential accesses to storage devices. Third, we carefully design an efficient technique for data placement inside the storage device that takes full advantage of the internal SSD bandwidth.
Using a wide range of real genomic datasets, we show that GenStore significantly improves the read mapping performance of three state-of-the-art software (hardware) baselines [294, ?, 419] by – (–) for read sets with high similarity to the reference genome and – (–) for read sets with low similarity to the reference genome. Our energy analysis shows that GenStore reduces energy consumption by on average for read sets with high/low similarity to the reference genome.
We propose MegIS (Chapter 5), the first in-storage processing system designed to reduce the data movement overheads inside the end-to-end metagenomic analysis pipeline.
To address the challenges of in-storage processing for metagenomics, we enable cooperative in-storage processing, where we do not solely focus on processing inside the storage system but, instead, we capitalize on the strengths of processing both inside and outside the storage system for metagenomic analysis. We realize cooperative in-storage processing via a synergistic hardware/software co-design between the storage system and the host system.
We show that MegIS outperforms two state-of-the-art performance- and accuracy-optimized software metagenomic tools [?, 435] by – and –, respectively, while matching the accuracy of the accuracy-optimized tool. MegIS achieves – speedup compared to the state-of-the-art metagenomic hardware-accelerated (using processing-in-memory [4]) tool, while achieving significantly higher accuracy. MegIS provides large average energy reductions of and compared to software and hardware performance-optimized baselines, respectively, and compared to the accuracy-optimized baseline.
Contributions
We propose GRAINS (Chapter 6), the first system for analysis with large-scale genomic and metagenomic sequence graphs in storage.
We address the challenges of storage-centric computing through our detailed examination of typical analysis pipelines on large-scale sequence graphs and performing storage-aware algorithm-architecture co-design with two key aspects. First, we make the graph-based (meta)genomic analysis pipelines more storage-friendly. Second, we improve performance, energy-efficiency, and cost-effectiveness via in-storage and in-flash processing.
We show that GRAINS provides – speedup over the state-of-the-art software baselines [?, ?, ?, ?], and – speedup over a hardware-accelerated (with processing-in-memory) baseline, while providing significantly higher energy efficiency at low cost. GRAINS provides significantly higher energy efficiency of on average and over software and hardware baselines, respectively.
We propose SAGe (Chapter 7) to mitigate the data preparation bottleneck, while maintaining high compression ratios (comparable to genomic-specific compression algorithms) and ensuring a lightweight design. To this end, we propose an algorithm-architecture co-design for highly-compressed storage and high-performance access of large-scale genomic sequence data.
To address the challenge of improving data preparation performance while maintaining high compression ratios at low hardware cost, we leverage the key insight that the information encoded in genomic data follows specific trends, shaped by factors such as sequencing technology and common genetic phenomena. By carefully exploiting these characteristics to synergistically co-design algorithms and hardware, SAGe achieves high compression ratios, comparable to state-of-the-art genomic compressors, while enabling low decompression latencies, using only lightweight hardware and efficient streaming accesses.
We demonstrate that SAGe improves the average end-to-end performance and energy efficiency of two state-of-the-art genome sequence analysis accelerators [513, ?] by – and –, respectively, compared to when the accelerators rely on state-of-the-art software and hardware decompression tools.
We demonstrate in Chapters 4, 5, 6, and 7 that our storage-centric systems provide these performance and energy benefits without relying on costly hardware resources throughout the system (e.g., external I/O bandwidth, large DRAM capacity, extensive computational units), making genomics and metagenomics more accessible for wider adoption.
We describe how all storage-centric designs presented in this dissertation can be put all together at low cost. Chapter 8 describes the combined design and its evaluations.
We describe future opportunities and new directions enabled by the contributions presented in this dissertation. Chapter 9 discusses these opportunities and directions, including storage-centric computing for other biological data types, storage-centric designs for constructing and updating large-scale genomic databases and graphs, highly-compressed storage and high-performance access of other biological data types, and genomic privacy in the era of storage-centric computing.
Dissertation Outline
This dissertation is organized into nine chapters. Chapter 2 provides relevant background regarding genomic and metagenomic analyses, graph-based analysis, and storing sequence data. Chapter 3 discusses related works on techniques for alleviating storage I/O overheads (including storage-centric computing), memory-centric computing, accelerating genomic and metagenomic analyses, and genomic-specific compression techniques. Chapter 4 presents GenStore and its evaluation. Chapter 5 presents MegIS and its evaluation. Chapter 6 presents GRAINS and its evaluation. Chapter 7 introduces the data preparation bottleneck, along with presenting SAGe and its evaluations. Chapter 8 discusses how we can put all the storage-centric designs proposed in this dissertation together. Finally, Chapter 9 provides future research directions and concluding remarks.
Background
This chapter provides an overview of the background necessary for understanding the contributions, evaluations, and discussions in this dissertation. Section 2.1 provides details on storage systems based on solid state drives (SSDs). Section 2.2 explains the overall genomic and metagenomic workflow, which involves three key steps of sequencing, basecalling, and analysis (which in itself consists of multiple steps). Section 2.3 explains genomic analysis in more detail, and Section 2.4 explains metagenomic analysis in more detail. Section 2.5 describes graph-based genomic and metagenomic analyses. Section 2.6 explains genomics-specific compression.
Solid State Drive Organization
In this thesis, we focus on storage systems based on solid state drives (SSDs) using NAND flash memory, the prevalent memory technology in modern storage systems [?, ?, ?]. We expect that our proposed designs would also provide performance and energy benefits with storage devices that are built using emerging or older non-volatile memory technologies (e.g., [?, ?]).
Figure 2.1 depicts the internal organization of a modern NAND flash-based solid-state drive (SSD) that consists of three main components: ❶ NAND flash packages, ❷ an SSD controller, and ❸ DRAM.
Figure 2.1. Organizational overview of a modern SSD.
NAND Flash Memory. An SSD consists of multiple NAND packages, each comprising multiple dies (also called chips) that share the package’s I/O pins. One or more packages share command/data busses (called channels) to connect to the SSD controller. Dies sharing the same channel can operate independently of each other, but only one die can communicate with the SSD controller (e.g., for data transfer) at a time via the shared channel. A die has multiple (e.g., 2–8) planes. Each plane contains thousands of blocks. A block includes hundreds to thousands of pages, each of which is 4–16 KiB in size. NAND flash memory performs read/write operations at page granularity but erase operations at block granularity. Planes in the same die share the peripheral circuitry used to access pages; as such, they can concurrently operate only when accessing pages (or blocks) at the same offset, which are called multi-plane operations [?, ?, ?, ?, ?].
SSD Controller. An SSD controller has two main components: (i) multiple cores to run SSD firmware, commonly called the flash translation layer (FTL), and (ii) per-channel hardware flash controllers for request handling and error-correcting codes (ECC) for underlying NAND flash chips. The FTL is responsible for communication with the host system, internal I/O scheduling, and various SSD management tasks required for hiding the unique characteristics of NAND flash memory from the host system [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 563, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. For example, a page of NAND flash memory needs to first be erased before it can be programmed,1 so the FTL always performs out-of-place updates by writing the new data of a logical page to a new physical page that was erased previously. To this end, the FTL maintains logical-to-physical (L2P) address mappings [?, ?] for reads and performs garbage collection [?, ?, 563, ?, ?, ?, ?] to reclaim new physical pages for writes.
SSD-Internal DRAM. A modern SSD employs large low-power DRAM (e.g., 4GB LPDDR4 DRAM for a 4TB SSD [?]) to store metadata for SSD management tasks. Most of the DRAM capacity is used to store the L2P mappings for address translation. It is common practice to maintain the L2P mappings at 4KiB granularity to provide high random access I/O performance [?, ?], so in a 32-bit architecture, the memory overhead for the L2P mappings is approximately 0.1% of the SSD capacity (4 bytes per 4KiB data).
While the majority of this DRAM capacity is used to store the L2P mappings, SSD-internal DRAM is also used for several other critical functions. These include buffering and coalescing host write data, maintaining wear-leveling and garbage-collection metadata, storing bad block information, tracking open blocks and free space, and supporting firmware execution [?].
SSD I/O Bandwidth. To mitigate the large performance gap between main memory and the storage system, SSD manufacturers increase the external bandwidth of SSDs by employing advanced I/O interfaces between the host system and SSDs. For example, older SATA3 SSDs from 2018 provide around 500MB/s sequential-read bandwidth [?, ?], but newer and state-of-the-art PCIe-Gen5 SSDs from 2025 provide significantly higher sequential-read bandwidth, up to 16 GB/s for four-lane PCIe-Gen5 SSDs (e.g., 14.8 GB/s in Samsung 9100 Pro SSD [?]).
A modern SSD’s internal bandwidth, i.e., I/O bandwidth between NAND flash chips and SSD controller (ⓐ in Figure 2.1) is usually higher than its external bandwidth, i.e., I/O bandwidth between the host and the SSD (ⓑ). For example, an enterprise SSD controller [?] from 2020 supports 6,550MB/s external bandwidth and 19.2GB/s internal bandwidth (16 channels, each with a bandwidth of 1.2 GB/s). In another example from 2025, a state-of-the-art SSD controller [?] delivers 14 GB/s of external bandwidth and up to 57.6 GB/s of internal bandwidth (achieved via 16 channels and a peak bandwidth of 3.6 GB/s per channel). Over-provisioning the internal bandwidth is reasonable since 1) a modern SSD needs to perform various internal management tasks (e.g., garbage collection [?, ?, 563, ?, ?, ?, ?], wear-leveling [?, ?, ?], and data refresh [?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) and 2) a higher number of channels reduces contention between requests by interleaving data between the channels.
Genomic and Metagenomic Workflows
Traditional genomics analyzes genome sequences from a genomic sample, which contains an individual (or a small group of individuals) of the same known species. Metagenomics requires the analysis of the genome sequences of various organisms in a metagenomic sample, which contains different species present in a common environment (e.g., human gut, soil, or oceans) [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?].
Given a genomic or a metagenomic sample, a typical workflow consists of three key steps [?, ?, 416, 417]: (i) sequencing, (ii) basecalling, and (iii) analysis. fig:2.2 shows an overview of these steps, as we will explain in the rest of this section.
Figure 2. Overview of a typical genomic workflow.
Sequencing
The first step, sequencing (❶ in Figure 2.2) {cite:p}`ref-153,ref-154,ref-155,ref-156,ref-157,ref-158,ref-159,ref-160,ref-161,ref-162,ref-163,ref-164,ref-165,ref-166,ref-167,ref-168,ref-169,ref-170,ref-171,ref-172,ref-173,ref-174,ref-175,ref-176,ref-177,ref-178,ref-179,ref-180,ref-181,ref-182,ref-183,ref-184,ref-185,ref-186,ref-187,ref-188,ref-189,ref-190,ref-191,ref-192,ref-193,ref-194,ref-195,ref-196}, converts DNA into raw digital signals. Sequencers cannot read many organisms’ entire genomes as complete, error-free sequences. Instead, they produce many shorter overlapping sequences called reads that are randomly sampled from different locations in the genome. To mitigate the impact of sequencing errors, multiple reads cover each genomic position. The average number of reads per location is called the sequencing depth. Deeper sequencing provides more information per location, which allows later analysis steps to better distinguish between true biological signals and sequencing errors.
Sequencers are distinguished by the characteristics of their reads. Examples include sequencers that produce short reads (75 to 300 characters) with very high accuracy () [?, ?, ?, ?] and long reads (typically 500 to 25k characters, and up to M characters [?, ?, ?]) with intermediate accuracy () [?, ?, ?, ?, ?]. We describe the three major sequencing technologies in more detail.
Sequencing-by-synthesis (SBS) sequencing [?, ?, ?, ?, ?, ?, ?, ?, ?] is a widely-used, accurate, and cost-effective sequencing technology. The SBS sequencing process has four key steps. First, the DNA molecule is fragmented into short pieces (e.g., approximately 200 bases), called reads. To enable attaching these reads to a specialized glass slide called a flow cell, a few nucleotides, called adapters, are attached to each read. Second, these fragments are amplified into clusters of identical fragments to increase signal redundancy and improve sequencing reliability. Third, a complementary DNA strand from a read is synthesized base by base. To this end, during each sequencing cycle, an enzyme called DNA polymerase incorporates a single fluorescently-labeled nucleotide into the growing complementary strand. Each base emits a distinct light color upon incorporation, thereby enabling the identification of each individual nucleotide. Fourth, the flow cell is imaged after every cycle, and the resulting series of images constitutes the raw sequencing data. This cycle of nucleotide incorporation and imaging is repeated for each position in the DNA fragment, progressively reconstructing its full sequence from the fluorescent signals recorded across successive cycles. Basecalling algorithms then decode these fluorescent signals into nucleotide sequences while correcting for sequencing errors [?, ?]. SBS provides high accuracy. However, due to its cycling procedure, SBS is inherently limited to producing short reads. This limitation can pose challenges for downstream analyses such as large genome assembly and the resolution of complex genomic regions [?, ?].
Single Molecule Real-Time (SMRT) sequencing [?] is a high-throughput sequencing technology that avoids the cycle-by-cycle approach of SBS, enabling the generation of longer reads (e.g., up to a few thousand bases). The SMRT sequencing process typically has five key steps. First, similar to SBS, DNA is fragmented into smaller pieces (i.e., reads). Second, these fragments are circularized using hairpin adapters that form closed circular molecules, allowing the same fragment to be sequenced multiple times. Third, a single DNA polymerase enzyme is attached to each circularized template to initiate the synthesis of a complementary strand. Fourth, circularized fragments are loaded into Zero-Mode Waveguide (ZMW) wells [?], which are nano-scale structures that confine the sequencing reaction to a small volume, thereby reducing background noise and achieving a high signal-to-noise ratio. Fifth, unlike the discrete cycles in SBS, sequencing proceeds continuously in real time. As the polymerase incorporates fluorescently labeled nucleotides into the growing strand, each incorporation event emits a distinct light signal that is captured as a continuous stream of image data in movie format. SMRT sequencing supports two primary modes: (i) Circular Consensus Sequencing (CCS) [?, ?], in which the polymerase repeatedly sequences the same circular template to produce a highly accurate consensus sequence, and (ii) Continuous Long Read (CLR) mode [?], which prioritizes read length at the cost of higher error rates. Although SMRT sequencing images can be rapidly converted into nucleotide sequences, the inherent noise in the technology necessitates additional error-correction steps [?, ?], including sequence alignment, consensus assembly construction, and assembly polishing.
Nanopore sequencing [?, ?] is a high-throughput sequencing technology that enables the sequencing of nucleic acid molecules (e.g., double-stranded DNA, dsDNA) as they pass through nano-scale pores, called nanopores. The nanopores are embedded in a membrane that isolates the two sides. The nanopore sequencing process has three key steps. First, a voltage is applied across the membrane such that the upper part of the membrane (i.e., cis side) is negatively charged and the lower part (i.e., trans side) is positively charged, driving negatively charged DNA or RNA molecules through the nanopore from the cis to the trans side. A motor protein attached to one end of the molecule guides it toward a nanopore, separates the two strands (for dsDNA), and controls the translocation speed, which is a factor critical for sequencing accuracy. Second, as the molecule passes through the nanopore, specific sequences of nucleotides (i.e., -mers, with typically between 6 and 9 [?, ?]) partially disrupt the ionic current flowing through the pore’s sensing regions, producing characteristic current changes that enable nucleotide identification. However, several sources of noise can affect measurement accuracy, including variations in translocation speed [?], stochastic current fluctuations [?], and environmental factors such as temperature [?]. Third, raw electrical signals are generated from each nanopore at a certain frequency (e.g., approximately 5,000 signals per second), typically with many reads sequenced simultaneously across multiple pores in the sequencer’s flow cell. These electrical signals encode the characteristics and content of the nucleic acid molecules passing through the pores. Due to the nature of its sequencing method, nanopore sequencing enables the generation of ultra-long reads (e.g., up to a few million bases [?, ?, ?]).
Basecalling
The second step, basecalling (2) [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], converts the sequencer’s raw signals to strings. The basecalling process depends on the sequencing technology. For SBS sequencing signals, basecalling analyzes image intensities to identify the nucleotide sequences [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. For SMRT sequencing signals, basecalling interprets fluorescence pulses to determine the nucleotide sequences [?, ?]. In nanopore sequencing, basecalling converts the changes in the electrical signals into nucleotide sequences [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?].
Due to the noisy electrical signals, basecalling nanopore sequencing signals is more challenging compared to the more direct signal to nucleotide translation in SBS and SMRT. To improve the accuracy of nanopore basecalling, many modern basecallers propose techniques based on deep neural networks (DNNs) [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. These models typically include convolutional neural networks (CNNs), recurrent neural networks (RNNs), or a combination of both. CNNs enable the extraction of structured features from raw signals that deep learning models can use to predict the nucleotide sequence. RNNs, often bidirectional Long short-term memory (LSTM), capture temporal dependencies to improve prediction accuracy under noisy conditions of nanopore sequencing. To handle signal segments of varying length caused by varying translocation speed, basecalling models employ flexible decoder mechanisms such as Connectionist Temporal Classification (CTC) layers, Conditional Random Field (CRF) decoders, or a combination of both, thereby enabling accurate assignment of bases to variable-length signal windows.
At the end of the basecalling process, each DNA read is converted to: (i) the DNA encoded using an alphabet representing the nucleotides (also called base pairs) A, C, G, T (along with N to represent unknowns), (ii) a quality score [?] for each nucleotide, encoding its probability of being incorrect using an ASCII character (the incorrect bases can arise due to the fact that sequencing signals are inherently noisy and must be computationally interpreted to infer the underlying nucleotide sequence), and (iii) a header. The strings from all reads in a sample (i.e., a read set) are then written to a file. This file format is FASTQ [?], the most common read set format [?]. The file is then typically stored compressed (see Section 2.6) for future analysis.
Analysis
The third step is analysis (3) on a collection of read sets. Since read sets are typically stored compressed [?, ?, ?, ?, ?], they need to be prepared (i.e., decompressed and formatted) before analysis. A typical genomic analysis workflow quantifies mismatches between the reads and a reference genome. However, since metagenomics deals with genome sequences whose species are not known in advance in many cases, it requires comparisons of the target sequences against large databases of many reference genomes. Section 2.3 and Section 2.4 explain genomic and metagenomic analysis in more detail, and Section 2.5 further details graph-based (meta)genomic analysis.
Genomic Analysis
In this section, we explain the key parts of genomic analysis and the importance of high-performance and energy-efficient genomic analysis.
Read Mapping Process
A typical analysis workflow quantifies mismatches between the reads and a reference genome. Since the sequencing process does not provide location information for reads, genomic analysis typically starts with the computationally-expensive read mapping process [?, 294, ?, 416, 417, ?, ?], which finds the potential matching locations of reads in the reference genome. For each matching location, i.e., the location of each matching subsequence in the reference genome, a read mapper computes an alignment score, a numerical value that quantifies the degree of similarity between the read and the region of the reference to which the read aligns.
Since each read is much shorter than the reference genome (e.g., the human reference genome contains ∼3.2 billion base pairs, yet a read is usually 75–300/500-25k base pairs in short/long read sequencing technologies), a read mapper typically uses an index of the reference genome to reduce the search space for each read. The index is a dictionary, i.e., a key-value store, where the keys are unique -length subsequences (called -mers) extracted from the reference genome, and the values are the exactly-matching locations of these -mers in the reference genome [299, 514]. The value of is fixed during the offline index generation step and used for all subsequent steps.2 To greatly reduce the storage overhead of the index and speed up queries against it, without significantly changing the final outcome of read mapping, some read mappers index only a subset of reference genome -mers called minimizers [699, 700, 701]. A minimizer is a representative -mer of a set of -mers according to a scoring mechanism. For example, some read mappers [294, 702] calculate hash values for all -mers in a window of consecutive -mers from an input sequence, and mark the -mer with the smallest hash value as the minimizer -mer.
Read mapping is a three-step process. Figure 2.3 shows an overview of these steps, as we will explain in the rest of this section.
Figure 2.3. Overview of a typical read mapping process.
In the first step, seeding (❶ in Figure 2.3), the read mapper queries the reference index to determine potential locations in the reference genome where the read could map. To do so, the read mapper looks up in the reference index every minimizer -mer fetched from a read. If the minimizer -mer hits in the reference index, the read mapper marks the locations of such a -mer in the reference genome as the read’s potential matching locations, also called seeds.
In the second step, seed filtering and/or chaining (❷), the read mapper prunes the potential matching locations in the reference to which the read cannot possibly align (due to large differences between the read and the reference at those locations). If all of the potential matching locations of the read get filtered (i.e., excluded from further consideration), the read mapper discards the read from further analysis. The read mapper uses a dynamic programming (DP) algorithm [363, 366, 416, 417, 421, 422, 423, 424, 518, 519] to 1) merge overlapping seeds into longer regions, called chains [294], and 2) calculate their corresponding chaining scores, which are values that quantify the approximation of the entire read’s alignment score in these regions. If the read mapper finds one or more chains with a sufficiently high chaining score (indicating a high degree of similarity to the reference genome), then the read mapper performs the third step. If the read has no chain with a sufficiently high score, the read mapper excludes the read from further consideration and skips the third step.
In the third step, sequence alignment [?, ?, ?, 363, ?, 518, 519, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?] (3), the read mapper determines the exact differences between a read and the reference genome at the potential matching locations. Sequence alignment is done with a computationally-expensive DP algorithm [363, 366, 416, 417, 421, 422, 423, 424, 518, 519] to perform approximate string matching (ASM). Finally, the read mapper returns the locations in the reference genome with the best alignment scores for each read.
Pre-Alignment Read Filtering
To mitigate the high performance overhead of sequence alignment, read filtering approaches are widely used. Read filters can be incorporated at any stage of the process before alignment. There are two main filter types.
The first filter type [299, ?, 366, 421, 422, 423, 424, ?] aims to efficiently filter out from consideration potential matching locations in the reference genome that lead to a large number of edits (larger than a user-defined threshold) between the read and the reference genome at those locations. Doing so avoids a costly alignment step for potential locations at which the read would not match the subsequences of the reference genome.
The second filter type [419] aims to detect if a read matches a subsequence of the reference genome with no edits (i.e., exact-match) or very few (e.g., 1-5) edits. Reads that satisfy this requirement are guaranteed to align to the reference genome without requiring the costly read alignment process, and thus can be filtered (i.e., be excluded from the costly alignment process). This filter type is particularly effective for read sets with a large number of exactly-matching reads (e.g., 80% in human short read sets [419, ?, ?]).
While both filter types reduce computation overhead, they still require a large number of random memory accesses for each read. In a typical read set of several gigabytes, read filters incur several random accesses per read 1) to the reference index for seeding, and potentially, 2) to the reference genome to compare the read with the subsequence of reference genome at each potential matching location.
Further Steps in Analysis
The result of read mapping (matching locations and the alignment scores at these locations) can be fed to various downstream analysis tasks (e.g., variant calling [?, ?], genome assembly [?, ?, ?, ?, ?, ?, ?, 702, ?], and taxonomic classification [4, ?, ?, ?, ?, ?]). Analysis workflows typically access all base pairs of each read, but only a small fraction of the corresponding quality scores. This is because read mapping, while using all base pairs, typically ignores quality scores [294, ?, ?, ?, ?]. The subsequent steps (e.g., variant calling) only need quality scores from the positions surrounding mismatches [?, ?] to distinguish true biological variation from sequencing errors.
Importance of High-Performance and Energy-Efficient Genomic Analysis
The performance and energy efficiency of the analysis step is critical for three key reasons. First, it often begins with existing, already sequenced and basecalled read sets because, in many cases, a single read set needs to be analyzed many times and at different times [?, ?, ?]. For example, some applications (e.g., measuring population genetic diversity [?, ?]) require analyzing a read set with many reference genomes at different times. Other applications require repeating the analysis many times (e.g., with updated or personalized references [?, ?]) to improve accuracy. Second, long analysis times pose critical challenges in time-critical use cases such as clinical settings [?, ?] and timely surveillance of diseases across a population [?]. Given the large throughput of modern sequencers and the growth rate of sequencing throughput being higher than Moore’s Law [?], the analysis throughput has emerged as a critical bottleneck [?, ?, ?]. Therefore, simply scaling up traditional systems for analysis is not efficient (both in terms of cost and energy). Third, the development of sequencing technologies that enable analysis during sequencing [?, ?] increasingly necessitates the need for fast analysis that can keep up with sequencing throughput.
Due to the criticality of the analysis step and the challenges of analyzing large amounts of sequencing reads on conventional systems, a large body of works (e.g., [?, ?, ?]) propose techniques to improve performance and energy efficiency of genomic analysis, particularly read mapping (e.g., [?, ?, 299, ?, ?, ?, ?, ?, ?, 417, ?, ?]), which is one of the most critical bottlenecks in many analysis applications [?]. Section 3.3 provides a more comprehensive overview of works on accelerating genomic analysis.
Metagenomic Analysis
In this section, we explain the key parts of genomic analysis and the importance of high-performance genomic analysis. While traditional genomics studies genome sequences from an individual (or a small group of individuals) of the same known species, metagenomics requires the analysis of the genome sequences of various organisms of different species present in a common environment (e.g., human gut, public transport vehicles, soil, or oceans) [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. Figure 2.4 shows an overview of metagenomic analysis, which involves determining the species present/absent in the sample ❶ and their relative abundances (i.e., the relative frequencies of the occurrence of different species in the sample) ❷.
Figure 2.4. Overview of metagenomic analysis.
Presence/Absence Identification
To find the species present in the sample ❶ in Figure 2.4, many tools (e.g., [4, ?, ?, ?, ?, ?, ?, ?, 435, ?, ?, ?, ?, ?, ?, ?, ?]) extract -mers (i.e., subsequences of length ) from the input queries in a sample read set (ⓐ in Figure 2.4) and search for the k-mers in an input reference database (ⓑ). Each database contains k-mers extracted from reference genomes of a wide range of species. The database associates each indexed k-mer with a taxonomic identifier ()3 of the reference genome(s) the k-mer comes from. At the end of the presence/absence identification process, the metagenomic tool outputs the taxIDs of the species present in the sample (ⓒ).
The GB- or TB-scale databases typically support random (e.g., [4, ?, ?, ?, ?, ?, 435, ?, ?, ?, ?, ?]) or streaming (e.g., [?, ?, ?, ?, ?]) access patterns. To gain a deeper understanding of data movement overheads in metagenomics, we discuss these access patterns in more detail.
Tools with Random Access Queries (Random-Qry). Some presence/absence identification tools (e.g., [4, ?, ?, ?, ?, ?, 435, ?, ?, ?, ?, ?]) commonly perform random accesses to search their database. A state-of-the-art tool in this category is Kraken2 [435], which maintains a hash table that maps each indexed -mer to a taxID. To identify which species are present in a set of queries, Kraken2 extracts -mers from the read queries and searches the hash table to retrieve the -mers’ associated taxIDs. For each read, Kraken2 collects the taxIDs of that read’s -mers and, based on the occurrence frequencies of these taxIDs, uses a classification algorithm to assign a single taxID to each read. Finally, Kraken2 identifies the species present in the sample based on the taxIDs of the reads in the sample.
Tools with Streaming Access Queries (Stream-Qry). Some presence/absence identification tools (e.g., [?, ?, ?, ?, ?]) predominantly feature streaming accesses to their databases. A state-of-the-art tool in this category is Metalign [?]. Presence/absence identification in Metalign is done via 1) preparing the input read set queries, and 2) finding species present in them. To process the queries, the tool extracts -mers from the reads and sorts them. Finding the species in the sample involves two steps. First, the tool finds the intersecting -mers, which are -mers that are common between the query -mers and a pre-sorted reference database. In this step, the tool uses large -mers (e.g., ) for both the queries and the database to maintain a low false positive rate. This is because large -mers are more unique, and matching a long -mer ensures that the queries have at least one long and specific match to the database. Second, the tool finds the taxIDs of the intersecting -mers by searching for the intersecting -mers or their prefixes in a smaller sketch database of variable-sized -mers. Each sketch is a small representative subset of -mers associated with a given taxID. Searching for both the intersecting -mers and their prefixes in this step increases the true positive rate (i.e., species correctly identified as present in the sample out of all species actually present in the sample) by expanding the number of matches.
Abundance Estimation
After finding the taxIDs of the species present in the sample, some applications require a more sensitive step to find the species’ relative abundances [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?] in the sample (❷ in Figure 2.4). Different tools implement their own approaches for estimating abundances, from lightweight statistical models [?, ?, ?] to more accurate but computationally-intensive read mapping [?, ?, ?, ?, ?, ?]. Lightweight statistical models use the taxIDs assigned to each read, along with the relationships between taxIDs encoded in the taxonomic tree, to assign species to each read, determining the number of reads belonging to each species. Read mapping is the process of finding potential matching locations of reads against one or more reference genomes. Metagenomic tools can map the reads against reference genomes of species in the sample, accurately determining the number of reads belonging to each species.
Importance of High-Performance and Energy-Efficient Metagenomic Analysis
By enabling the analysis of the genomes of organisms from different species in a common environment, metagenomics overcomes a limitation of traditional genomics, which requires culturing individual known species in isolation. This limitation has been a major roadblock in many clinical and environmental use cases [?]. The impact of metagenomics has been rapidly increasing in many areas that each has broad implications for society, such as precision medicine [?, ?, ?, ?, ?, ?], urgent clinical settings [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], understanding microbial diversity of an environment [?, ?, ?, ?, ?, ?, ?], discovering early warnings of communicable diseases [?, ?, ?, ?], outbreak tracing [?, ?, ?, ?], agriculture [?], and many other critical areas. Due to its importance, metagenomics has attracted wide global attention, with medical and government health institutions heavily investing in metagenomic analysis [?, ?, ?]. The global amount of genomic data that is incorporated in metagenomic workflows is growing exponentially [2, ?], doubling every several months [267, ?, ?, ?], and is projected to surpass the data growth rate of various major internet media platforms [2, 4, ?].
In metagenomics, the analysis step bottlenecks the end-to-end performance of the workflow, and therefore, poses a pressing need for acceleration [4, ?, ?, ?, ?, 452] for three reasons. First, the sequencing and basecalling steps for a sample are usually one-time tasks [?, ?, ?]. In many cases, the reads from a single sequenced sample can be analyzed by multiple studies or at different times in the same study. This is because (i) there are many heuristics and parameters involved in metagenomics, which need to be tuned to achieve a desired sensitivity-specificity tradeoff [?], (ii) there are different databases created with different parameters or genomes that need to be used for achieving different accuracy goals [?], and (iii) a sample can be analyzed several times with databases that are regularly updated with new genomes, or with syndrome-specific targeted databases [?].
Second, even when performing the metagenomic analysis step only once for a sample, the throughput of this step is significantly lower than the sequencing throughput of modern sequencers (e.g., [?]). While sequencing one sample can take a long time, a single sequencing machine can sequence many samples from different sources in parallel [?, ?], achieving very high throughput. Our analysis with a state-of-the-art metagenomic tool [?] shows that analyzing the data, sequenced and basecalled by a sequencer in 48 hours, takes 38 days on a high-end server node (detailed configurations in Chapter 5). Such long analysis poses serious challenges, specifically for time-critical use cases that require fast decision making (e.g., clinical settings [?] and timely surveillance of infectious diseases [?]). Since the growth rate of sequencing throughput is higher than Moore’s Law [?, ?], this already large gap between sequencing and analysis throughput is widening [?, 266, 267, ?], and simply scaling up traditional systems for analysis is not efficient.
Third, the development of sequencing technologies that enable analysis during sequencing [?, ?, ?, ?, ?, ?, ?] increasingly necessitates the need for fast analysis that can keep up with sequencing throughput. The possibility to perform analysis during sequencing enables new features, where sequencing can be dynamically stopped once a target pathogen is identified, or sufficient coverage is reached [34, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 282, ?, ?, ?, ?, ?, ?]. Therefore, to achieve this feature, the analysis throughput must match or exceed the sequencing throughput. Otherwise, the analysis step bottlenecks the entire process and makes this feature impractical in time-critical settings.
The analysis step is also the primary energy bottleneck in the metagenomic workflow, and optimizing its efficiency is vital as sequencing technologies rapidly evolve. For example, a high-end sequencer [?] uses 405 KJ to sequence and basecall 100 million reads, with 92.5 Mbp/s throughput and 2,500 W power consumption [?]. In contrast, processing this dataset on a commodity server (detailed configurations in Chapter 5) requires 675 KJ, accounting for 63% of the total energy of the metagenomic workflow. The need to enhance the analysis’ energy efficiency is further increasing for two reasons. First, sequencing efficiency has been continually improving. For example, a new version of Illumina sequencer from 2023 [?] provides higher throughput at only higher power consumption compared to an older version [?] from 2020, resulting in much better sequencing energy efficiency. Therefore, simply relying on scaling up commodity systems to improve the analysis throughput worsens the energy bottleneck. Second, the increased adoption of compact portable sequencers [?] for on-site metagenomics (e.g., in remote locations [?] or for personalized bedside care [?]) offers high-throughput sequencing with low energy costs. The drive towards portability further amplifies the need for energy- and cost-effective analysis that can match the portability and convenience of these sequencers.
Graph-Based Genomic and Metagenomic Analysis
Sequence Graphs have emerged as a powerful approach for representing and querying massive and complex genomic databases (e.g., containing reference genomes from many species or previously sequenced samples) [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. Unlike traditional models of representing genomic sequences, which represent genomic databases as a collection of disjoint, linear sequences, sequences in a graph are represented by graph walks [?, ?]. Genome graphs collapse subsequences shared across different database entries into single nodes and indicate adjacent subsequences with edges, compacting sequence sets (by up to thousand-fold [?]). A node’s metadata then indicates which entries contain the represented sequence.
Sequence graphs provide two fundamental benefits, which make them indispensable, particularly in modern, population-scale genomics [?, ?, ?, ?, ?]. First, the graph topology, along with its metadata, offer vast expressive power [?, ?, ?, ?, ?]. A graph naturally encodes the evolutionary history and diversity of a cohort of organisms, revealing their shared and distinct sequences [?, ?, ?, 243]. This leads to reduced bias and improved accuracy in analyses. For example, genome graphs improve disease diagnosis by capturing population-specific variants often missed by analyses on traditional, linear sequences [?, ?, ?, ?]. Second, genome graphs leverage the inherent redundancy of genomic data to avoid redundant computation. This is because shared genomic regions across database entries are stored only once and do not need to be queried separately. This is essential in settings such as population-scale pathogen surveillance [?, ?, ?], where public health systems must rapidly match new pathogen genomes against large national databases [?, ?, ?, ?, ?, ?], enabling timely detection of local outbreaks and limiting broader spread [?, ?, ?, ?, ?, ?, ?, ?].
De Bruijn Graphs. To efficiently represent large-scale genome graphs, de Bruijn graphs (DBGs), which are a type of overlap graph [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], have been adopted by many recent works [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]. While other sequence graph classes exist [243, ?, ?], DBGs scale much better with both the entries’ size and genetic diversity of genomic databases [?, ?, ?, ?], which is why they are preferred in these contexts. Figure 2.5 shows an example of ❶ linear sequences, ❷ their corresponding DBG, and ❸ the corresponding compacted DBG. In a DBG, each node is a unique -mer that is observed in the input, and there is a directed edge from node to node if the suffix -mer of
Figure 2.5. An example of Bruijn graph (DBG) and its compacted form.
is equal to the prefix -mer of . Each node is then assigned a color, representing its metadata. Example metadata can be the IDs of the database entries from which the k-mer originates, the occurrence frequencies of the k-mer [?, ?, ?], and the k-mer’s exact locations [?, ?, ?, ?]. A common strategy to reduce a DBG’s size is to instead store its corresponding compacted DBG, where all -mers from a maximal non-branching path are merged into a single node. There are two common ways to represent (compacted) DBGs [?]. A node-centric DBG of order (e.g., [?, ?, 833]) stores all -mers observed in the entries and defines its edges implicitly (Figure 2.5). An edge-centric DBG of order (e.g., [?, ?, ?, ?, ?, 834, ?]) stores observed -mers as nodes and only stores the edges that represent observed -mers. In the rest of this dissertation, we refer to compacted DBG as DBG for short.
Graph-based sequence analysis follows the same high-level goal as the conventional analyses described in Sections 2.3 and 2.4: it involves querying reads from a sample against a set of sequences (either genomes of the same species, or a database of genomes of different species or already sequenced samples) to determine what species or genomic features are present in the sample [?, ?, ?, ?, ?, ?] and/or to find their differences from genomes in the database [?, ?]. The key difference lies in how the reference sequences and databases are represented and queried. In conventional, linear sequence-based analysis, reference sequences and databases are stored as one or more independent linear sequences. Consequently, analysis identifies candidate positions of input query reads in these linear sequences and, when needed, aligns each read against the corresponding sequence regions. In graph-based analysis, reference sequences and databases are encoded as graph walks. Therefore, a read is matched not simply to a position in a linear sequence, but to one or more nodes or walks through the graph. The metadata associated with the matched nodes can additionally indicate which genomes, species, or database entries contain those sequences.
As shown in Figure 2.6, queries fall into two categories: ❶ k-mer set lookups (where k-mers in a read set are matched against the graph to determine the species present in a sample), and read mapping (where each read is analyzed individually). Read mapping can be done by either ❷ with the alignment step, i.e., alignment-based (e.g., [?, ?, ?, ?, ?, ?, ?, ?])
Figure 2.6. High-level overview of graph-based genome analysis.
or ❸ without the alignment step, i.e., alignment-free (e.g., [?, ?, ?, ?, ?, ?, ?, ?]). Alignment-free approaches (more common for large-scale studies [?, ?]) match all -mers of a read to the graph, retrieve the metadata associated with the graph nodes to which the -mers match, and classify the read using this metadata. Alignment-based approaches introduce an additional, computationally expensive approximate string matching step, where candidate regions identified by -mer matches are refined via dynamic programming to determine precise differences between the read and the graph.
Importance of High-Performance and Energy-Efficient Graph-Based Genomic Analysis
Due to similar reasons explained in Sections 2.3.4 and 2.4.3, the performance and energy efficiency of the analysis step in graph-based genome analysis is critical. Due to this criticality and the challenges of analyzing large amounts of sequencing reads on conventional systems, a large body of work (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) proposes techniques to improve the performance and energy efficiency of graph-based genomic analysis.
Unique Characteristics of Genome Graphs
The type of data encoded in genome graphs and the underlying goals of querying genome graphs exhibit unique features not encountered in conventional, non-genome graphs (e.g., social networks, web graphs, road networks). General-purpose graph data structures and methods do not account for these features, leading to significant inefficiencies in storage and computation requirements and missed opportunities. This has led to significant efforts in both software (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) and hardware (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) to develop specialized techniques for genome graphs.
The unique semantic characteristics in genome graphs manifest in three key aspects regarding the graph structure, storage (e.g., sparsity and degree distribution), and access patterns. First, in a traditional graph with nodes, there are to edges that must all be stored explicitly (e.g., adjacency lists [?, ?], compressed sparse row formats [?, ?]). Genome graphs, most commonly represented as DBG s, are structurally constrained in that they either store nodes or edges and the other is obtained implicitly. This is a feature necessitated by the massive scale of genome graphs and enabled by the inherent overlap structure of the sequences they encode.
Second, traditional graphs typically exhibit power-law distributions, in which a small number of nodes have very high degree and many graph-processing optimizations (e.g., [?, ?, ?]) exploit this skew. However, DBG node outdegrees and indegrees are at most four (determined by the fixed alphabet size, A, C, G, T, in the underlying data) regardless of the overall graph size. Therefore, optimizations that exploit skewed degree distributions, a common strategy in conventional graph processing systems, are not well-suited to genome graphs, necessitating different optimization approaches.
Third, due to the differences in underlying graph structures, access pattern optimization opportunities vary between genome graphs and non-genome graphs. The compressed data structures used in large-scale genome graphs enforce specific node orderings and, thus, restrict node reordering, a technique commonly used in non-genome graphs to improve access patterns [833, 834]. However, the fact that genome graphs encode biological sequences, and that queries are themselves biological sequences, opens new avenues for improving access pattern locality that are unavailable in conventional graph workloads. For example, -mers from different query reads that share common substrings map to nearby regions in the graph’s index structures. In contrast, most conventional non-genome graph queries do not exhibit this kind of structural coupling between the queries and the graph, limiting opportunities for analogous locality-aware optimizations.
Storing and Compressing Sequence Data
Importance and Growth of Sequence Data. Driven by continuing exponential drops in sequencing costs [849, 850] and the pivotal importance of genomic and metagenomic sequence analysis, sequence data volumes in public [1, 266, 267] and private [851, 852] repositories are growing by an order of magnitude every few years, approaching and expected to exceed the data volumes generated by various major internet media platforms [1, 2, 266, 267]. While genomic analysis also works on other data types (e.g., assembled genomes [243, 853, 854], epigenetic markers [855, 856, 857, 858], and 3D chromosomal contact maps [859, 860, 861]), analyzing genomic sequence data is one of the most critical processes in genomics, with sequence data constituting the largest fraction of data stored and analyzed [862]. For example, sequence data is the largest class of data maintained at institutions like the National Center for Biotechnology Information and the European Molecular Biology Laboratory [862, 863]. Note that many other genomic data types (e.g., assembled genomes, epigenetic markers, and 3D chromosomal contact maps) are also derived from sequence data, so it is critical to store this sequence data to ensure both reproducibility and to enable reanalysis with future improved workflows. For example, while some tasks (e.g., variant calling as explained in Section 2.3.3) can start with already mapped reads, best-practice guidelines dictate that reads should be remapped during the course of a study to ensure the use of appropriate (updated [?, ?, ?, ?, ?, ?] or personalized [?, ?]) reference genomes and mapping parameters. This is reflected in the fact that, as of October 2025, 75.9% (18 peta DNA bases) of publicly-deposited whole-genome sequencing read sets [266, 862] are in unmapped, i.e., FASTQ format [?], and their overall size has been growing at a rate of 42.5% on average per year over the last decade.
Genomic-Specific Compression. Due to the importance of storing genomic data space-efficiently, there exist many compression techniques (e.g., [459, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) specialized for genomic read sets. These techniques attain higher compression ratios (e.g., typically from ∼2 to ∼40 [459, ?, ?, ?]) than general-purpose compressors (e.g., typically from ∼2 to ∼6 [459]), because general-purpose approaches fail to leverage longer-range similarities common in DNA data [?, ?]. This large gap in compression ratios exists even with state-of-the-art general-purpose compressors in software (e.g., [?, ?, ?, ?, ?, ?, ?]) or hardware (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?]), which is the reason for the large emphasis in genomics to use genomic-specific compressors [?, ?]. For example, hardware-based general-purpose Intel QAT [?] and IBM zEDC [?] compression accelerators lead to 2.6× and 2.7× lower average compression ratios, respectively, than genomic compressors [459, ?] on our evaluated datasets (Chapter 7). Similarly, state-of-the-art software-based general-purpose compression algorithms such as xz [?] (a state-of-the-art LZMA-based compressor) and zstd [?], both at their highest levels, lead to 2.13× average (up to 6.7×) worse compression ratios than genomic compressors [459, ?] on our datasets.
A genomic read set consists of two key parts: DNA bases and quality scores (as detailed in Section 2.2.2). Since quality scores do not have the same redundancy patterns as DNA bases, state-of-the-art genomic compressors process them in separate streams and compress them using various techniques (e.g., lossless context models [?, ?, ?, ?, ?] or block sorting [459], and lossy quantization [?]). Some tools (e.g., [?, ?, ?]) discard quality scores altogether since many recent workflows (e.g., [294, 435, ?, ?, ?]), particularly those using accurate reads, do not use quality scores.
Figure 2.7 shows an example of a typical genomic compression technique for DNA bases. Genomic compressors typically represent the DNA bases in each read set with a ① consensus sequence and ② the mismatches of each read in the read set compared to that consensus sequence [?, ?, ?, ?]. A consensus sequence is an approximation of the organism’s genome, and can either be a user-provided reference [?] or a de-duplicated string derived from the reads, representing the most likely character at each location [?, ?]. Note that it is not sufficient to store only the consensus sequence to represent the read set because the consensus sequence alone does not capture the variations in the original reads. Individual reads often contain unique differences, including sequencing errors [?, ?, ?, ?] or biological variation [?].

Figure 2.7. Overview of genomics-specific compression.
Given a consensus sequence, a lossless encoding of a read’s DNA bases consists of ❶ the read’s matching position in the consensus sequence (many compressors, e.g., [?, ?, ?, ?], store matching positions based on their order of appearance in the consensus, which enables space-efficient delta-encoding), ❷ mismatch positions (delta-encoded), ❸ mismatch bases and types (i.e., substitution, insertion, deletion), and ❹ read length (especially for long reads since they have variable lengths). This encoding of the DNA bases is then more compressible using general-purpose compressors (e.g., [?]), which are then used by the state-of-the-art genomic compressors to further compress the mismatch information.
Compression Does Not Replace Read Mapping. Note that identifying matching positions of a read against the consensus sequence during compression in genomic-specific compressors is independent from and does not eliminate the need for read mapping operations during subsequent analysis stages [?, ?, ?]. This is due to three complementary reasons. First, during compression, the exact reference genomes required for all potential future mapping analyses may not be known [?]. Second, as explained in Section 2.2, a read set may undergo mapping multiple times or at different times, with different reference genomes or mapping parameters. Therefore, simply having the matches against a single consensus sequence is insufficient. Third, during compression, only one matching position for each read is stored (to minimize the size of the read set), whereas various mapping use cases require many matching positions of each read [294, ?, ?].
Summary and Outlook
Genomic analysis examines the genomic information of living organisms and other biological entities. Traditional genomics focuses on the genome sequences of an individual (or a small group of individuals) from a single known species, whereas metagenomic analysis examines genome sequences from multiple species in a shared environment. Genomic and metagenomic analyses play critical roles in many fields, such as precision medicine, urgent clinical settings, and discovering early warnings of communicable diseases, ensuring food safety through pathogen monitoring, agriculture, and scientific discovery. The adoption of genomic and metagenomic analyses has been rapidly increasing in recent years, driven by their critical importance and the rapid advancement of sequencing technologies. These factors have led to exponential growth in sequence data generation. Due to the challenges of analyzing and storing massive volumes of this data, significant efforts have been made in accelerating (meta)genomic analyses and storing sequence data in compressed forms. Despite the benefits of these techniques in improving the analysis and storage of large-scale sequence data, we identify two major outstanding problems in accessing stored sequence data and feeding it to the analysis units: (i) the overhead of moving large amounts of low-reuse data from the storage system and the unnecessary burden on the rest of the system (e.g., main memory and computation units), and (ii) the data preparation bottleneck, where compressed sequence data needs to be first decompressed and formatted before it can be analyzed.
The goal of this dissertation is to (i) alleviate the data movement overheads of genomics and metagenomics analyses from the storage system and reduce the computational burden from the rest of the system, and (ii) mitigate the data preparation bottleneck while achieving high performance, energy efficiency, and compression ratios. We aim for our proposed designs to be lightweight such that they can seamlessly integrate with a broad range of genomic and metagenomic analysis systems.
To alleviate data movement overheads of moving large amounts of low-reuse sequence data from the storage system and reduce the overall computational burden from the rest of the system, we propose storage-centric computing (SCC) systems for genomic analysis (Chapter 4), metagenomic analysis (Chapter 5), and graph-based (meta)genomic analysis (Chapter 6), which plays critical roles in population-scale scenarios. SCC refers to processing data inside the storage device, either on the SSD controller (in-storage processing, i.e., ISP) or on the flash dies (in-flash processing, i.e., IFP). SCC can be a fundamental solution for alleviating this data-movement overhead by processing data where it originally resides. To mitigate the data preparation bottleneck, we propose an algorithm-architecture co-design for highly-compressed storage and high-performance access of sequence data (Chapter 7). Finally, we describe how all storage-centric designs presented in this dissertation can be put all together at low cost (Chapter 8) and describe future opportunities and new directions enabled by the contributions presented in this dissertation (Chapter 9).
Chapter 3
Related Work
This chapter provides an overview of related work and describes where the prior work falls short. Section 3.1 discusses related work on techniques for reducing storage I/O overheads, including storage-centric computing. Section 3.2 discusses an overview of related work on memory-centric computing. Section 3.3 and Section 3.4 provide an overview of related work on accelerating genomic and metagenomic analyses, respectively. Section 3.5 discusses related work on accelerating graph-based (meta)genomics. Section 3.6 explains related work on genomic-specific compression.
Techniques for Reducing Storage I/O Overheads
The performance of many data-intensive applications is bottlenecked by storage I/O. A large body of work proposes techniques to reduce storage I/O overheads across different layers of the system stack. We summarize several key approaches.
Reducing the I/O System Stack Overheads
Several works aim to reduce the overhead of the software layers in the storage I/O stack (e.g., file system, block layer, device drivers, and various kernel subsystems). These layers introduce overheads related to context switches, data copies, lock contention, and interrupt handling. We discuss two broad classes of approaches that alleviate these overheads: (i) accelerating the I/O stack operations using specialized hardware or streamlined data paths, and (ii) bypassing the kernel via user-space I/O frameworks.
Accelerating the I/O Stack Operations
Various approaches aim to accelerate the I/O stack by offloading or streamlining its operations. We explain several key examples in this section.
Zero-Copy Techniques. Some techniques (e.g., [?, ?, ?, ?, ?, ?]) reduce I/O overhead by eliminating unnecessary data copies between kernel and user space. For example, the mmap system call [?, ?, ?] maps files directly into the application’s virtual address space, allowing applications to access stored data through memory load/store operations without relying on read/write system calls. While mmap avoids the cost of copying data into user-space buffers, it relies on the kernel’s page-fault handling mechanism, which can cause large overheads. Other zero-copy techniques (e.g., [?, ?]) reduce data copies for specific I/O patterns (e.g., transferring data between file descriptors) but still operate within the kernel I/O stack. io_uring [?] provides a modern asynchronous I/O interface that uses shared ring buffers between user and kernel space to reduce system call overheads, and supports zero-copy for both storage and network I/O.
Data Processing Units. Some works (e.g., [?, ?, ?, ?, ?, ?, ?]) propose Data Processing Units (DPUs), which are specialized units designed to offload data-centric infrastructure tasks from the host system and reduce the additional burden on the host. For example, some DPUs can handle NVMe protocol processing, compression, deduplication, and encryption. DPU-based storage offloading is particularly beneficial in multi-tenant cloud environments and disaggregated storage, where infrastructure tasks compete with application tasks for hardware resources.
Direct Storage Access for Accelerators. Some works (e.g., [?, ?, ?, ?, ?, ?]) reduce the involvement of the host CPU from the storage access path by enabling hardware accelerators (e.g., GPUs) to access storage devices directly. Traditionally, GPU-based executions rely on the host CPU to manage all storage accesses, thereby introducing significant overheads. NVIDIA GPUDirect [?, ?, ?] and related technologies, such as Big accelerator Memory (BaM) [?, ?], accelerate GPU storage access by enabling direct access between storage devices and GPUs, reducing CPU involvements and overheads. These approaches are particularly effective for emerging workloads that require fine-grained, data-dependent access to large data structures stored in the storage system.
User-Space I/O Frameworks
Another approach for reducing I/O stack overheads is to bypass the kernel and enable applications to deal with storage devices directly from user space. For example, kernel-bypass approaches (e.g. [?, ?, ?, ?]) provide a set of user-space libraries and drivers that bypass the kernel storage layers. Key examples include Storage Performance Development Kit (SPDK) [?], which unbinds NVMe devices from the kernel driver, and NVMeDirect [?], which provides a user-space I/O framework that leverages the kernel NVMe driver for control-plane operations while enabling user-space data-plane access.
User-Controlled Data Placement
Several storage interface standards (e.g., [?, ?, ?, ?, ?]) expose the internal organization of the storage device to the host system. This enables users to optimize data placement and reduce internal device overheads. For example, Zoned Namespaces (ZNS) SSDs [?, ?] partition the storage address space into zones that must be written sequentially and give the host control over data placement within each zone. By leveraging zones across applications, the host can reduce write amplification and garbage collection (GC) overhead within the SSD. Open-Channel SSDs [?, ?] expose the physical configuration of the SSD (e.g., channels, dies, blocks) to the host, allowing host-side software to implement its own specialized flash translation layer (FTL). This enables users to optimize data mapping, wear leveling, and GC policies based on the specific needs of their workloads.
Request Batching, Scheduling, and Prefetching
Some techniques reduce I/O overheads by considering relationships across different I/O requests. Request batching techniques (e.g., [?, ?, ?]) amortize I/O request overheads (e.g., interrupts, command encoding) across multiple requests. I/O scheduling techniques (e.g., [?, ?, ?, ?]) reorder and merge requests to improve spatial locality and provide more storage-friendly access patterns. Prefetching techniques (e.g., [?, ?, ?]) predict future access patterns and proactively fetch data from the storage system into memory (or caches), overlapping I/O overheads with useful computation. However, the effectiveness of these techniques depends on the predictability of the applications’ access patterns.
Caching and Buffering
Caching and buffering are fundamental techniques for reducing the number of storage accesses. By keeping frequently or recently accessed data in faster media (e.g., DRAM, SRAM), caches leverage temporal and spatial locality to serve some I/O requests without accessing the storage device itself. Operating systems maintain a page cache that transparently buffers recently accessed file data in main memory [?, ?, ?, ?]. Database systems implement their own buffers with application-aware replacement policies that can outperform generic OS caching strategies [?, ?]. SSD controllers maintain internal DRAM caches for metadata (e.g., the flash translation layer mapping table) and for buffering write data before committing it to NAND flash. The effectiveness of caching techniques depends on the working set size relative to the cache size and the applications’ access pattern locality.
Data Reduction
Data reduction approaches reduce the volume of data transferred between storage and computational units, thereby lowering the demands for I/O bandwidth and storage capacity. We explain two key techniques for data reduction.
Compression. Data compression (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) reduces the size of stored data, thereby reducing the amount of data transferred during I/O operations. Compression can be applied at multiple levels: within the application, in the file system, block layer, or inside the storage device itself. Several works (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) propose hardware compression to further improve compression performance. The trade-off is between compression ratio, performance, energy efficiency, and computational cost of compression/decompression. We further detail genomic-specific compression in Section 3.6.
Data Deduplication. Data deduplication techniques (e.g., [?, ?, ?, ?]) identify and eliminate redundant copies of data, storing only unique data blocks and replacing duplicates with references to the unique copy. Deduplication can operate at the file level (coarse-grained) or at the sub-file block level (fine-grained), and can be performed inline (during writes) or as a post-processing step. In storage systems with high data redundancy, deduplication can reduce both storage capacity requirements and I/O overheads. However, deduplication can introduce metadata management overhead (for tracking block references and hash indices) and can lead to fragmentation of the logical-to-physical mapping, potentially increasing read amplification.
Hybrid Storage and Memory Systems
Hybrid storage and memory systems combine multiple storage and memory technologies with varying cost, capacity, and performance characteristics (e.g., HDDs, capacity-optimized SSDs, performance-optimized SSDs, persistent memory, and DRAM) to achieve different trade-offs. Various works (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) analyze these hybrid systems and/or propose placement and migration policies that determine where data resides across tiers based on access patterns and/or workload-specific heuristics. Tiered storage systems can operate transparently (managed by the OS or storage controller) or with the user’s control.
Memory and Storage Disaggregation and Expansion
Rather than reducing the cost of each I/O operation, another class of approaches changes where data resides and over which interconnect it is reached. We explain two key techniques: expanding the byte-addressable memory tier beyond a single node, and decoupling storage capacity from the compute node.
CXL-Based Memory and Storage Expansion. Compute Express Link (CXL) [?, ?] is a cache-coherent interconnect layered on top of PCIe that allows a host to attach memory devices accessible via load/store instructions rather than through the block I/O stack. CXL memory expanders and memory pools increase the capacity of the memory tier well beyond the DIMM slots of a single node and enable capacity to be shared across hosts [?, ?], thereby reducing how often an application’s working set spills to the storage device. However, despite its benefits, CXL technology does not eliminate the need to store and access large, low-reuse datasets in the storage system. We further evaluate the benefits of our proposed storage-centric designs compared to systems with large main memory in Chapters 5 and 6.
Disaggregated Storage. Disaggregated storage decouples storage capacity from the compute node and accesses it over a network fabric. For example, NVMe over Fabrics (NVMe-oF) [?] extends the NVMe command set across network fabrics, enabling a host to access remote SSDs with a latency approaching that of a locally attached device. This allows compute and storage to scale independently, improves device utilization, and simplifies capacity provisioning. However, every access additionally traverses the network stack and the fabric, which adds protocol-processing overhead, increases latency, and exposes requests to congestion and to interference from other tenants sharing the fabric and the remote device. These techniques are orthogonal to those we propose in this dissertation. In fact, disaggregation increases the value of reducing the volume of data that crosses the storage interface, since each byte that leaves the device also traverses the network fabric. Storage-centric computing (Section 3.1.10) therefore becomes even more beneficial as the storage system moves further away from the computational units.
I/O Amplification Reduction
I/O amplification occurs when the amount of data actually read from or written to the storage device exceeds the amount logically requested by the application. Write amplification in NAND flash-based SSDs mainly stems from garbage collection. Read amplification can occur due to mismatches between the application’s access granularity and the storage device’s minimum read unit. Several works (e.g. [?, ?, ?, ?]) propose techniques to reduce I/O amplification via more efficient log-structured storage [?], key-value separation that stores large values separately from their keys to reduce compaction overhead [?], and alignment of application data structures with the device’s internal page and block sizes [?, ?]. As discussed in Section 3.1.2, techniques such as ZNS SSDs [?] and Open-Channel SSDs [?] enable host-managed data placement that can fundamentally reduce write amplification by ensuring that data with similar lifetimes is co-located in the same erase blocks.
Improving the Performance of the Storage Device
Orthogonal to system-level optimizations, improvements within the storage device itself can also reduce I/O latency and increase throughput. We describe several key examples.
Reducing Contention
Contention within the storage device arises when multiple requests compete for shared resources, such as channels, dies, planes, or internal buses. Some works aim to alleviate this contention by proposing efficient data placement (e.g., [?, ?]), lightweight network structures between the flash chips within the SSD (e.g., [?, ?, ?]), or reducing the overhead of management tasks within the SSD, such as GC (e.g., [?, ?, ?]).
Improving NAND Flash Chip Latency
Improvements in the NAND flash chip can directly reduce the fundamental read/write latencies of the storage device. Advances in NAND flash technology, such as transitions from SLC to MLC, TLC, and QLC, increase storage density but also increase read and write latencies [?, ?, ?, ?, ?, ?]. Various techniques aim to improve NAND flash performance via (i) voltage optimizations that reduce read latency by tuning the read reference voltages to the specific wear state of each block (e.g., [?, ?, ?]), (ii) optimizing read retry mechanisms (e.g., [?, ?, ?]), and (iii) partial programming techniques that enable finer-grained writes, thereby reducing the effective write latency for small updates (e.g., [?, ?, ?]), (iv) erase operation optimizations (e.g., [?]). Continual advances in memory technologies (e.g., 3D NAND with improved cell architectures) offer denser storage with improved scalability compared to planar NAND [?, ?, ?].
Other Storage Device Optimizations
Device-level optimizations include a range of controller and firmware improvements that enhance I/O performance. Some works (e.g., [?, ?, ?]) implement efficient command scheduling and queue management to improve performance, fairness across different applications/users, and quality of service.
Storage-Centric Computing
Storage-centric computing (SCC) is a computing paradigm that aims to overcome data movement overheads between the storage systems and computational units by making storage systems compute-capable. SCC can be a fundamental solution for alleviating storage I/O data-movement overheads by processing data where it originally resides. The benefits of SCC stem from three key reasons. First, SCC eliminates unnecessary data movement of low-reuse data across the system. Second, SCC reduces the computational burden imposed by low-reuse data on the rest of the system (e.g., main memory and computational units), thereby freeing resources for other useful work. Third, SCC can leverage the high internal bandwidth of SSDs [?, ?, ?, ?, ?, ?, ?, ?, ?]. In modern SSDs, the internal bandwidth often surpasses the external bandwidth. Over-provisioning the internal bandwidth is reasonable since 1) a modern SSD needs to perform various internal management tasks (e.g., garbage collection [?, ?, 563, ?, ?, ?, ?], wearleveling [?, ?, ?], and data refresh [?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) and 2) a higher channel count reduces contention between requests by interleaving data between the channels. The effective internal bandwidth increases even further when processing directly in the NAND flash dies, without the need to traverse the SSD channels [?, ?, ?].
SCC approaches can be broadly divided into three categories based on where computation is performed relative to the storage medium: (i) tightly attached processing, which places computational units outside but in close proximity to the storage device; (ii) in-storage processing (ISP), which places computational units within the storage device, on the storage controller; and (iii) in-flash processing (IFP), which performs computation within the flash dies. We briefly describe these three approaches.
Tightly attached processing places computational units outside the storage device but connects them closely to storage. Prior works, for example, tightly couple SSDs with computation units (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?]), enabling data accessed from storage to be processed without first moving to the conventional host processor and memory hierarchy. This approach benefits from the flexibility and computational capability of external accelerators. However, since computation remains outside the storage device, data must still cross the storage device’s external interface before it can be processed, thereby limiting the amount of data movement that can be eliminated.
Techniques for Reducing Storage I/O Overheads
ISP places computational units within the storage device, typically in or near the SSD controller, as general-purpose computing units (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]), as FPGAs (e.g., [?, ?, ?]) or GPUs (e.g., [?]) tightly connected to the flash dies, or computing units specialized for different applications, such as artificial intelligence/machine learning (e.g., [?, ?, ?, ?, ?, ?, ?, ?]), pattern processing and k-mer counting (e.g., [?, ?]), graph analytics (e.g., [?, ?, ?, ?]), and others (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?]). These works augment the computational capabilities already present in modern storage controllers with general-purpose or specialized processing units that operate directly on application data. Performing computation within the SSD avoids transferring all accessed data across the external storage interface and enables only the required results to be sent to the host. Compared with tightly attached processing, ISP eliminates data movement across the external SSD interface before computation. However, data must still be transferred from the flash dies through the SSD channels to the controller, where computation is performed.
IFP moves computation even closer to the stored data by performing computation within the NAND flash dies. IFP approaches (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 598, ?, ?, ?, ?, ?]) add computational logic to the flash dies or exploit the existing operational properties of NAND flash arrays to perform computation. IFP can avoid not only data movement between the storage device and the host but also a significant fraction of the data movement between the flash dies and the SSD controller. It can further exploit the high internal parallelism and bandwidth available within individual flash chips. However, compared with tightly attached processing and controller-level ISP, IFP generally requires more substantial modifications to the flash die’s architecture. Several works (e.g., [?, ?, ?]) propose SCC designs that combine ISP, IFP, and processing-in-memory (PIM).
Various works propose SCC for different applications, such as artificial intelligence/machine learning (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]), pattern processing and k-mer counting (e.g., [?, ?, ?]), graph analytics (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?]), and others (e.g., [?, 598, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]). To our knowledge, our work, GenStore, is the first in-storage system designed for accelerating genome sequence analysis. GenStore works with both short and long reads, and different degrees of genetic variation between the compared genomes. A later work [?] proposes an additional filter for genomics in storage, which can be orthogonally combined with our design. Our work on SCC design for metagenomics, MegIS, is the first SCC system designed to significantly reduce the data movement overhead of the end-to-end metagenomic analysis pipeline. By addressing the challenges of leveraging ISP for metagenomics, MegIS fundamentally alleviates its data movement overhead from the storage system via its efficient and cooperative pipeline between the host and the SSD. Our work, GRAINS, enables SCC for graph-based (meta)genomic analyses via storage-aware algorithmarchitecture co-design to (i) make the pipelines more storage-friendly and (ii) further improve performance, energy-efficiency, and cost-effectiveness via ISP and IFP.
Through storage-centric designs, our proposed techniques significantly alleviate the overhead of moving large amounts of low-reuse data from the storage system to the main memory and computational units, while reducing the computational burden on the rest of the system. Our techniques can be complementarily combined with various other approaches discussed in this section to further improve end-to-end performance. For example, our optimizations that make the genomic and metagenomic analysis pipelines more storage-friendly enable these pipelines to better leverage the available storage bandwidth provided by techniques such as direct storage access, user-space I/O frameworks, and storage device optimizations.
Memory-Centric Computing
Memory-centric computing (MCC) or Processing-in-Memory (PIM) is a computing paradigm that aims to overcome data movement overheads between main memory and computational units by making memory systems compute-capable [993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002]. There are two general categories of MCC or PIM: (i) Processing near memory (PNM), which places computational units on the same die as memory controllers, the logic layer of 3D-stacked memory, or the memory itself, and (ii) Processing using memory (PUM), which leverages the analog properties of the memory technology to perform computation. We briefly describe these two approaches.
PNM can be divided into three general approaches. The first approach adds computational units to memory controllers (e.g., [1003, 1004, 1005, 1006, 1007]). These works enable the memory controller to perform more tasks than just scheduling the memory requests. For example, some works devise computational units on the memory controller to reduce the round-trip cost of data movement, avoiding the latency of moving data within the cache hierarchy. While these works provide the key benefit of seamless integration with conventional memory technologies such as DDRx, they do not eliminate the data movement overhead from the memory device itself. As the memory controller typically resides on the same chip as the CPU, these works still require moving data between computational units and main memory.
The second approach places computational units in close physical proximity to (but not within) the memory chip, enabling near-data processing without modifying the memory chip itself (e.g., [1008, 1009, 1010, 1011]). These designs typically rely on either (i) 2.5D integration, in which logic is placed alongside high-bandwidth memory chips on a silicon interposer, providing low-latency, high-bandwidth communication between the logic and memory dies; or (ii) module-level integration, in which logic is embedded on the same printed circuit board (PCB) as the memory chips. While this approach benefits from avoiding off-chip data transfers between the host processor and main memory, it still suffers from data movement between memory chip(s) and computational chip(s). Such data movement consumes more energy than data movement only within each memory chip.
The third approach adds computational units to the memory chip itself, either (i) on the logic layer of a 3D-stacked memory (e.g., [363, 366, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) or (ii) near memory banks (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) by leveraging manufacturing techniques that support mixing logic and memory within the chip. This approach benefits from the larger memory bandwidth inside the memory chip and higher energy efficiency compared to the two previous approaches.
PUM takes advantage of the existing interconnects and analog operational behavior of conventional memory architectures (e.g., SRAM, DDRx, LPDDRx, HBM, NVM, and NAND flash), without requiring dedicated computational units or a logic layer, and typically with low additional area and power overheads (e.g., [?, ?, 419, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]). This approach takes advantage of the high internal bandwidth available within each memory cell array.
Our work on storage-centric design can be combined with memory-centric designs to provide large end-to-end benefits. For example, in Chapter 4, we demonstrate and evaluate how our proposed in-storage filter can be combined with a PIM-based read-mapping accelerator to remove I/O data movement overheads of the end-to-end read mapping process.
Accelerating Genomic Analysis
There have been extensive efforts to accelerate genomic analysis. Many works propose efficient heuristics and algorithmic optimizations (e.g., [?, ?, ?, 294, ?, ?, ?, ?, 299, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) and hardware accelerators (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, ?, ?, 366, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]).
Several works (e.g., [?, ?, 299, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, ?, 366, ?, ?, ?, 417, 421, 422, 423, 424, ?, 514, ?, ?]) accelerate read mapping, a commonly-used operation in genomics. These works tend to follow two general directions: 1) non-filtering and 2) filtering approaches.
Non-filtering approaches accelerate one or more non-filtering steps of read mapping (e.g., seeding and approximate string matching) using hardware accelerators. Examples of these accelerators include processing-in-memory architectures [?, ?, ?, ?, ?, ?, 363], ASICs [?, ?, ?], GPUs [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?], and FPGAs [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?].
Filtering approaches accelerate the pre-alignment filtering step of read mapping. These works provide highly-parallel read filtering heuristics that quickly eliminate dissimilar sequences before invoking computationally-expensive alignment algorithms. Examples of these accelerators include processing-near-memory architectures [?, 419, ?, ?], FPGAs [421, 422, 423, 424, ?], GPUs [424, ?, ?], or traditional CPU-based acceleration [299, ?, 424].
Our works on in-storage filters for genomics, GenStore, and on mitigating genomic data preparation bottleneck, SAGe, can be orthogonally combined with these works to improve the end-to-end performance of genome analysis. We show examples of integrating GenStore and SAGe with state-of-the-art genome analysis accelerators in Chapters 4 and 7, respectively.
Accelerating Metagenomic Analysis
There have been extensive efforts to accelerate metagenomic analysis.
Software Optimizations. Several tools (e.g., [?, ?, ?, ?, ?, ?, ?, ?]) use comprehensive databases for high accuracy, but usually incur significant computational and I/O costs. Some tools (e.g., [?, 435, ?, ?, ?, ?]) apply sampling to reduce database size, but at the cost of accuracy loss.
Hardware Optimizations. Several works use GPUs (e.g., [440, 441, 442, 443, 444, 445, 446]), FPGAs (e.g., [447, 448, 449]), and PIM (e.g., [4, 121, 450, 451, 452, 453]) to accelerate metagenomics by alleviating its computation or main memory overheads. These works do not reduce I/O overheads, whose impact on end-to-end performance becomes even larger when other bottlenecks are alleviated. Some works [34, 282] accelerate metagenomic analyses that use raw genomic signals in targeted sequencing [?, ?, ?, ?]. Targeted sequencing is not a focus of our work since this application looks for specific known targets in a sample, while we focus on cases where the contents of the sample are not known in advance and require looking up significantly larger databases.
Our work on SCC design for metagenomics, MegIS, is the first SCC system designed to significantly reduce the data movement overhead of the end-to-end metagenomic analysis pipeline. By addressing the challenges of leveraging ISP for metagenomics, MegIS fundamentally alleviates its data movement overhead from the storage system via its efficient and cooperative pipeline between the host and the SSD. We compare MegIS against a state-of-the-art processing-in-memory baseline in Chapter 5.
Accelerating Graph-Based Genomics and Metagenomics Analysis
Accelerating Operations on (Meta)Genome Sequence Graphs. Many works (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) propose software tools for (meta)genome sequence graphs. Several works propose hardware tools for querying sequence graphs by alleviating computation (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) and/or memory overheads (e.g., [?, ?, ?, ?, ?]). However, they do not alleviate I/O overheads, whose impact on end-to-end performance becomes even larger as other overheads are alleviated.
As shown in our evaluations in Chapter 6, our SCC system for sequence graphs, GRAINS, can flexibly integrate with these works to alleviate their I/O overhead. GRAINS enables SCC for graph-based (meta)genomic analyses via storage-aware algorithm-architecture co-design to (i) make the pipelines more storage-friendly and (ii) further improve performance, energy-efficiency, and cost-effectiveness via ISP and IFP. Some works (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) accelerate sequence graph construction, which is an important, but orthogonal task.
Accelerating Non-Genomic Graph Analysis. Many works accelerate graph analysis by alleviating computation (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]), main memory (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]), or I/O (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?]) overheads. However, they are neither applicable to nor target the unique demands of genome graphs.
Our work, GRAINS, is the first SCC system designed to significantly reduce the data movement overhead of the end-to-end analysis pipelines on genome graphs. Although some works propose SCC systems to mitigate I/O in conventional, non-genomic graph analytics (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?]), they are neither designed for nor directly applicable to genome graphs, which have fundamentally different structures, access patterns, and analysis requirements. As detailed in Section 2.5, large-scale genome graphs use fundamentally different data structures than non-genomic graphs (e.g., those for the web, social networks, or road networks). For example, DBG s often store only nodes (or edges) and encode edges (or nodes) implicitly via overlaps, since explicitly storing both is prohibitively wasteful at the genomic scale. Therefore, optimizations for conventional graphs are not only insufficient for genome graphs but also miss opportunities to exploit their distinctive structure.
Some techniques reduce I/O overheads with techniques other than SCC. For example, some works perform graph node reordering (e.g., [?, ?]), but they cannot be applied to genome graphs since their state-of-the-art representations have stringent node ordering requirements [833, 834]. Some works (e.g., [?, ?]) propose data partitioning to partially alleviate I/O overheads in systems with relatively small main memory. Note that as shown in our motivational analysis in Chapter 6, which is on a system with sufficient main memory capacity (i.e., where main memory is larger than the whole accessed data structures and working set), large I/O overheads still exist due to the need for moving large amounts of low-reuse data from the SSD to main memory. In Chapter 6, we further evaluate a system with limited main memory capacity while incorporating graph partitioning in the baselines, and show that GRAINS achieves significant speedups in this setting as well.
Compressing Sequence Data
Efficient and compact compression techniques for genomics data are of critical importance due to the continuing exponential growth of genomics data repositories [1, 2, 266].
Genomics-Specific Compression. Many works (e.g., [?, 459, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]) propose genomic compression. As detailed in Chapter 7, some works (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?]) accelerate certain computational kernels (e.g., BWT [?, ?], FM-Index search [?, ?, ?], and LZMA [?, ?]) widely used in genomic compressors. Despite their benefits, these approaches (i) are unsuitable for resource-constrained environments and/or (ii) do not fully mitigate the end-to-end preparation bottleneck (evaluated in Chapter 7). While some works [?, ?] use algorithms that do not rely on expensive resources, they compress poorly. As a strongly conservative evaluation, 0TimeDec (evaluated in Chapter 7) can serve as an idealized representation of decompressors that, despite their optimized performance, cannot be integrated in resource-constrained environments. As shown in our evaluations, by integration in a resource-constrained environment, our proposal, SAGe, leads to significant performance benefits over 0TimeDec.
General-Purpose Compression. Many works propose general-purpose compression in software (e.g., [?, ?, ?, ?, ?, ?, ?]) or hardware (e.g., [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?]). However, as analyzed in Chapter 7, general-purpose compressors achieve poor compression ratios for genomic data [?, ?].
To our knowledge, our proposal for sequence data preparation, SAGe, is the first system to mitigate the data preparation bottleneck in sequence analysis. SAGe achieves compression ratios comparable to state-of-the-art genomic compressors and maintains a lightweight design for integration with a wide range of genomic and metagenomic systems.
GenStore: In-Storage Filtering for Genomic Analysis
Motivational Studies
We perform experimental studies to understand the potential of efficient in-storage accelerators for improving the performance of genome sequence analysis applications.
Methodology
Read Mappers. We evaluate five read mapping systems, each of which adopts different optimization techniques to accelerate read mapping: 1) Base uses Minimap2 [294], a state-of-the-art software tool for read mapping. 2) SW-filter extends Minimap2 to filter out exactly-matching reads (i.e., reads that exactly match subsequences in one or more locations in the reference genome) using simple single-instruction-multiple-data (SIMD) operations, without requiring costly ASM operations. 3) Ideal-ISF uses an ideal In-Storage Filter (ISF) that can concurrently filter out exactly-matching reads inside the SSD while the host CPU performs read mapping for non-filtered reads. 4) ACC uses a state-of-the-art hardware accelerator for short read mapping, GenCache [419]. 5) Ideal-ISF+ACC uses an ideal in-storage filter (ISF) that can concurrently filter out exactly-matching reads inside the SSD while a hardware accelerator (ACC) performs read mapping for non-filtered reads.
System Configuration. To assess the impact of the storage subsystem on end-to-end application performance, we evaluate each of the five systems with four different configurations: 1) a low-end SSD (SSD-L) [?] with a SATA3 interface [?], 2) a mid-end SSD (SSD-M) [?] using a PCIe Gen3 M.2 interface [?], 3) a high-end SSD (SSD-H) [?] with a PCIe Gen4 interface [?], and 4) a system where all of the processed data is pre-loaded to DRAM with no performance cost for pre-loading (DRAM), as the idealized case where storage I/O overheads are completely eliminated (we do not evaluate DRAM for Ideal-ISF and Ideal-ISF+ACC since using in-storage processing is contradictory to pre-loading all the data to main memory). We assume 8 channels for SSD–L and 16 channels for SSD–M and SSD–H, where the maximum bandwidth per channel is 1.2 GB/s. The maximum internal bandwidth is calculated by 1.2 GB/s × channel count. The external bandwidth of SSD–L, SSD–M, and SSD–H for sequential reads is 500 MB/s, 3.5 GB/s, and 7 GB/s, respectively. Hence, the internal bandwidth of SSD–L, SSD–M, and SSD–H for sequential reads is 19.2×, 5.48×, and 2.74× that of its external bandwidth, respectively.
We evaluate Base and SW-filter by running Minimap2 on a high-end server (AMD EPYC 7742 CPU [?] with 1TB DDR4 DRAM). We simulate the performance of the other three systems using our simulation environment that faithfully models system components including DRAM and storage devices (see Section 4.3). We map all reads of a short read dataset against the human reference genome, where 80% of the reads have one or more exactly-matching subsequences in the reference genome [?, ?].
Key Features of an Ideal In-Storage Filter. We assume two key features for Ideal-ISF and Ideal-ISF+ACC. First, I/O overheads due to limited external SSD bandwidth are completely eliminated for filtered reads. Second, the system provides high in-storage filtering performance such that the filtering process can concurrently run in the SSD, and the latency of this filtering process is fully hidden by the read mapping of unfiltered reads in the host CPU (Ideal-ISF) or hardware accelerator (Ideal-ISF+ACC). We assume that the accelerator or the CPU streams through the input reads in batches and analyzes a batch concurrently with reading the next batch. Thus, the execution time of Ideal-ISF (+ACC) can be modeled as follows:
where T_{\mathrm{I/O\mathchar`-Ref}}, T_{\mathrm{I/O\mathchar`-Unfiltered}}, and T_{\mathrm{RM\mathchar`-Unfiltered}} are the latency of reading the reference genome from the SSD into main memory, the latency of reading the unfiltered genomic reads from the SSD, and the latency of read mapping of the unfiltered reads, respectively. For a given input size, T_{\mathrm{RM\mathchar`-Unfiltered}} varies depending on the computation unit used for read mapping (i.e., the host CPU or accelerator), while the I/O-latency values only depend on the SSD configuration.
Results & Analysis
Figure 4.1 shows the execution time of read mapping in the five evaluated systems, each with four different storage subsystem configurations. We make four key observations.
Figure 4.1. Execution time of read mapping with four different storage configurations.
Observation 1. The ideal in-storage filter provides significant performance improvements over other systems. Ideal-ISF significantly outperforms Base and SW-filter (by and , respectively), and Ideal-ISF+ACC provides a large speedup () over ACC, when they all use SSD-H. These large improvements are due to two key benefits provided by the ideal in-storage filter: 1) mitigation of data movement from the storage devices and 2) removal of the burden of filtering out 80% of the input read set from the rest of the system, including processors and main memory. To distinguish the effects of these two benefits, we analyze an ideal outside-storage filter (Ideal-OSF) that provides only the second benefit; this filter concurrently runs with the read mapper and fully overlaps the filtering process with the read mapping process of unfiltered reads. The execution time of Ideal-OSF (+ACC) can be formulated as follows:
where is the latency for reading all genomic reads from the SSD into main memory. Using SSD-H, Ideal-OSF leads to an execution time of 1.15 seconds, which is 60% slower than the Ideal-ISF+ACC. This is because is significantly larger than both and (in (1)).
The remaining observations dive deeper into the effects of the I/O bottleneck on each read mapping system.
Observation 2. In Base and SW-filter, using high-end SSDs significantly improves read mapping performance over low-end SSDs, effectively reducing the storage performance bottleneck that exists in low-end SSDs. For example, using SSD-H instead of SSD-L reduces the execution time of Base and SW-filter by 24% and 38%, respectively, showing comparable performance to DRAM, where all the data is pre-loaded to main memory (i.e., no I/O accesses). This is because, by using SSD-M and SSD-H, the performance bottleneck of the application shifts to parts of the system other than I/O (e.g., CPU or main memory). This observation shows that I/O has a significant impact on application performance but this impact can be alleviated at the cost of expensive storage devices and interfaces. Note that, while SSD-M and SSD-H provide an order-of-magnitude higher bandwidth for sequential reads compared to SSD-L, it is challenging to scale a storage system’s capacity using the high-end SSDs due to their significantly-higher prices and the relatively smaller number of the PCIe slots in a server.1
Observation 3. Even though SW-filter outperforms Base, its filtering process is slow. Potentially, SW-filter could provide significant performance benefits over Base due to two reasons; 1) as explained, 80% of reads in the dataset exactly match the reference genome, so only 20% of the reads need to undergo the costly ASM computation; 2) exact-match filtering requires only simple computation, i.e., SIMD XOR operations used by SW-filter. However, even with DRAM, SW-filter’s speedup over Base is only 41%. The limited speedup is mainly due to the large number of random memory accesses concurrently issued from all threads to the reference index (explained in Section 2.3.1). This observation highlights the potential of in-storage filtering. Even though both SW-filter and Ideal-ISF filter out the same fraction of reads, filtering outside the SSD must compete with the read mapping for the resources in the system (e.g., the limited main memory bandwidth). In contrast, filtering of reads inside the SSD (where the reads originally reside) can remove the burden of filtering from the rest of the system.
Observation 4. With a hardware accelerator (ACC), using the state-of-the-art SSD (SSD-H) does not fully alleviate the storage bottleneck, showing 23% longer execution time compared to when all the data is pre-loaded to main memory (DRAM). While using SSD-M and SSD-H in Base and SW-filter shifts the bottleneck away from I/O, ACC turns I/O into a bottleneck again. This is because ACC greatly reduces the computational bottleneck, which increases the relative effect of the storage subsystem on the end-to-end execution time. The ACC and Ideal-ISF+ACC results clearly show that data movement between the storage devices and the hardware accelerator, which has not been properly considered in prior read mapping accelerators [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 363, 419], can significantly bottleneck the potential benefits of the accelerator.
Comparison to Other Near-Data Processing Systems. Even though read mapping could also benefit from other near-data processing (NDP) approaches such as processing-in-main memory (PIM) [?, 366, ?, ?] or processing-in-caches [419], in-storage processing can fundamentally address the data movement problem by filtering large, low-reuse data where the data initially resides. As an extreme example, even if an ideal accelerator achieved a zero execution time for read mapping by addressing all of the computation and main memory overheads, there would still exist the need to bring the data from storage to the accelerator. In our motivational study, even SSD-H takes at least 1.55 seconds to read the entire dataset, which is 2.15 slower than the execution time that Ideal-ISF+ACC provides (0.72 seconds). Thus, even though solutions such as processing-in-memory can improve read mapping execution times, they still need to pay the cost of data movement from storage to the main memory [?, ?, ?, ?, ?, ?, ?, 363, 366, ?]. Therefore, an in-storage filter can be further integrated with any mapping accelerator, including PIM accelerators, to alleviate their data movement overhead.
Our Goal
Based on our observations, we conclude that an efficient in-storage filter can be a key enabler for read mappers to achieve high performance in both conventional software-based (e.g., Base and SW-filter) and new hardware-accelerated (e.g., ACC) genomics systems. In particular, in-storage filtering enables the system to take full advantage of the high computation capability of hardware accelerators by fundamentally addressing the data movement bottleneck. Our goal is to design an in-storage filter for genome sequence analysis in a cost-effective manner.
We have three key objectives in designing our new system. First, the system should provide high in-storage filtering performance to overlap the filtering with the read mapping of unfiltered data (as Ideal-ISF does in our motivation study). Second, it should support reads with 1) different properties (e.g., lengths and error rates) and 2) different degrees of genetic variation in the compared genomes. Third, it should not require significant additional hardware overhead, e.g., complicated logic circuits or large SRAM/DRAM memory.
GenStore
We propose GenStore, the first in-storage processing system tailored for genome sequence analysis. GenStore greatly reduces both data movement and computational overheads of genome sequence analysis by exploiting low-cost and accurate in-storage filters. GenStore supports reads with different properties (lengths and error rates) and different degrees of genetic variation in the compared genomes. We primarily design GenStore as an in-storage accelerator, which is an extension of the existing SSD controller and flash translation layer (FTL). GenStore is designed to be integrated into the system such that, when the accelerator is not in use, the entire storage device is available to all other applications, just like in a general-purpose system today.
Overview
The key idea of GenStore is to exploit low-cost in-storage accelerators to accurately filter out the reads that do not require the expensive alignment step in read mapping and thus significantly reduce unnecessary data movement from the storage system to main memory and processors. Figure 4.2 shows the overall architecture of GenStore and how it interacts with the host system. GenStore employs two types of hardware accelerators: ❶ a single SSD-level accelerator and ❷ channel-level accelerators, each of which is dedicated to a channel. The GenStore-FTL (❸) communicates with the host system and manages the metadata and data flow over the SSD hardware components (i.e., NAND flash chips, internal DRAM, and in-storage accelerators).
Figure 4.2. Overview of GenStore.
Once the host system indicates that the SSD should start analysis as required by a read mapping application (❶ in Figure 4.2), GenStore prepares for operation as an accelerator (❷). It flushes the conventional FTL metadata necessary to operate as a regular SSD (e.g., L2P mappings [563]), while loading the GenStore metadata necessary for each use case (Section 4.2.4 provides more details on GenStore FTL). After finishing the preparation, GenStore starts the filtering process. It keeps concurrently reading the data to process from all NAND flash chips ③ via multi-plane operations (i.e., it exploits the SSD’s full internal bandwidth, which is much higher than the I/O bandwidth between the SSD and host system [?, ?]), while filtering out reads ④ that do not have to undergo further analysis (e.g., ASM computation). Doing so is possible due to multiple channel-level accelerators that provide computational throughput matching the SSD’s internal bandwidth even for the most complicated computation required for filtering. The host system performs further computation as soon as GenStore sends unfiltered reads ⑤, which removes GenStore’s filtering process almost completely from the critical path of the application.
As explained in Section 2.1, most of the internal DRAM is occupied by the regular L2P mapping. Therefore, flushing the regular L2P mapping data into NAND flash memory enables GenStore to exploit most of the GB-scale DRAM (e.g., 4GB DRAM in a 4TB SSD [?]) for its operations, which significantly reduces the overhead of additional internal DRAM that might otherwise be required to store the GenStore metadata necessary for the filtering process. We carefully design the GenStore filtering algorithms to only sequentially access the underlying NAND flash chips, so GenStore requires only a small amount of metadata to access the stored data. Therefore, GenStore can use most of the internal DRAM space for such metadata. We envision that all GenStore metadata are built offline by the host or some other system (e.g., by the sequencing machine when the read set or reference genome are initially stored to the SSD). Constructing GenStore metadata is a one-time preprocessing step that can be performed independently of the read mapping process, while the result of the preprocessing step can be used multiple times for different genomics applications.
There exist two main challenges in designing GenStore as an efficient in-storage filter for read mapping. First, the behavior and data-access patterns in read mapping significantly vary depending on the read properties (length and error rate) and genetic variation between the compared genomes. Second, hardware resources (e.g., CPU and DRAM) are quite limited even in modern high-end SSDs. We address these challenges via thorough hardware/software co-design tailored for filtering 1) exactly-matching reads, i.e., reads that exactly match subsequences of the reference genome (Section 4.2.2), and 2) most of the non-matching reads, i.e., reads that would not align to any subsequence of the reference genome (Section 4.2.3).
GenStore-EM for Exactly-Matching Reads
Approach Overview
GenStore-EM accelerates read mapping by using an efficient in-storage filter for reads that have at least one exact match in the reference genome. Due to the low error rates of short reads, combined with low genetic variation between the compared genomes, a large fraction of short reads map exactly to the reference genome [419, ?, ?]. For example, on average 80% of human short reads map exactly to the human reference genome [419, ?, ?]. Since exact-match detection is computationally cheaper than ASM, concurrently filtering exact-matching reads inside the SSD can significantly improve the runtime of read mapping (as we demonstrate in Section 4.1). Note that, GenStore-EM is not applicable to long reads due to their greater length. For example, for a 10K base pair-long human read, even with zero sequencing error rate, the probability of the read exactly matching a subsequence in the reference genome is very low (e.g., ) due to natural genetic variation.2
Key Challenges. The key challenge in designing GenStore-EM is the large number of random accesses to large data structures inside the SSD. As explained in Section 2.3.2, identifying exact matches for read mapping requires a number of random accesses for each -mer in a read to two large data structures: 1) a large -mer index, to find potential matching locations of each -mer in the reference genome, and 2) the reference genome, to find candidate matching sequences at the candidate matching locations in the reference genome. Handling random accesses to large data structures is challenging for NAND flash-based SSDs for two reasons. First, NAND flash memory exhibits poor performance for random access reads. Second, we cannot use in-SSD DRAM to store the large data structures that are randomly accessed, since even in high-end SSDs, the size of internal DRAM is relatively small (e.g., 4 GB [?]) compared to the size of the data structures that GenStore-EM needs to handle (e.g., 7 GB for the human reference genome and its index [294]).
Key Idea. The key idea in GenStore-EM is to sequentialize most data accesses via a carefully designed metadata structure and data layout. To do so, we design a new sorted, read-sized -mer index structure. This index enables sequential scanning of the read set and the new index, with only one index lookup per read while performing filtering.
Figure 4.3 shows the key idea of GenStore-EM with a simplified example in which each short read consists of three base pairs (bps).3 Suppose that we have two data structures: 1) a sorted read table (SRTable), each entry of which stores a read and its unique ID, and 2) a sorted -mer index (SKIndex), which contains all unique read-sized -mers of the reference genome, along with each -mer’s corresponding locations in the reference genome. Each data structure is sorted by read/-mer in alphabetical order. With these two data structures, it is possible to identify each read’s exactly-matching locations in the reference genome by streaming both reads and -mers through a simple comparator. We use two pointers, and , which point to the current entries we are examining in SRTable and SKIndex, respectively. We sequentially increment the two pointers in three different ways based on the comparison result of the current read and -mer. First, when the current read and -mer are identical (❶ in Figure 4.3), we record the read as an exactly-matching read and increment and . Second, if the read is alphabetically larger than the -mer (❷), we conclude that the -mer does not match any read in SRTable and increment (so that we can examine if the next -mer matches the read). Third, if the -mer is alphabetically larger than the read (❸), we conclude that the read does not match any -mer in SKIndex. We record the read as not an exact match and increment (so that we can examine the next read).
Figure 4.3. Overview of the key idea of GenStore-EM.
GenStore-EM’s two data structures and filtering algorithm enable an exact-match filter highly suitable for in-storage processing. First, since these two data structures are only sequentially accessed, the filtering process can be done in a streaming manner, leveraging the high sequential read bandwidth of NAND flash memory. Second, we can easily perform exact-match detection of a read and a read-sized -mer with simple comparator logic and fully pipeline the filtering process with sequential access to the data structures.
A read-sized -mer index increases the total amount of accessed data for read mapping. The reason is that a read-length value of (e.g., =150) significantly increases the number of unique -mers, compared to the values commonly used in conventional read mappers (e.g., =15). For example, the size of an index structure for all unique -mers in the human reference genome is 21 GB when =15, while the size increases to 126 GB when =150. However, our proposal (i.e., a large yet sequentially-accessed SKIndex) is feasible and desirable for in-storage processing due to the large capacity and high internal bandwidth of modern NAND flash-based SSDs.
Design of GenStore-EM
fig:4.4 illustrates the overall operational flow of GenStore-EM, which consists of two steps: Step 1. data fetching and Step 2. exact-match filtering. GenStore-EM uses the two data structures explained in Section 4.2.2: 1) a sorted read table (SRTable) for storing the read set and 2) a sorted k-mer index (SKIndex) for storing read-sized k-mers from the reference genome. Step 1 reads the two data structures from NAND flash chips to the SSD’s internal DRAM in a batched manner (❶ in fig:4.4). Step 2 performs exact-match filtering within each read batch, using simple comparator logic in the SSD-level accelerator (❷). Steps 1 and 2 are performed in a pipelined manner. During filtering, GenStore-EM sends the unfiltered reads to the host system for full read mapping. This enables the concurrent filtering of reads in the SSD and read mapping of the unfiltered reads in the host system.
Figure 4. Overview of GenStore-EM.
Data Structures. We carefully design SRTable and SKIndex to minimize performance and storage overheads of GenStore-EM, by extending the two data structures described in Figure 4.3 in two aspects. First, both SRTable and SKIndex contain a strong hash value (e.g., SHA-1 [?] or MD5 [?]) of each read and read-sized k-mer, respectively, which is used as both the sorting criterion of the data structures and a fingerprint of each read and k-mer that is used by the comparator logic. Second, unlike the data structures described in Figure 4.3, SKIndex no longer contains the k-mers of the reference genome but only the fingerprints of the k-mers. Using strong hash values enables GenStore-EM to determine exact matches between a read and a k-mer by comparing only their fingerprints, which provides two benefits. First, it reduces the storage overhead of SKIndex by obviating the need to store the raw read-sized k-mers.4 For the human reference genome, the size of the optimized SKIndex (which stores fingerprints instead of read-sized k-mers) is 32 GB when the read size is 150 bps, which is 3.9× smaller than the size of the unoptimized SKIndex. Second, using fingerprints significantly reduces the performance overhead of exact-match detection by avoiding comparisons of reads and k-mers that are hundreds of bytes in size.
Note that such exact-match detection does not affect the accuracy of read mapping due to the extremely low collision rate of strong hash functions. Even in an extremely rare case of a hash collision, the impact of the collision on GenStore’s accuracy will be negligible [?], since the DNA information loss due to the falsely filtered read will highly likely be compensated by other reads generated from the neighboring locations in the DNA, which almost fully overlap with the falsely filtered read but have totally different hash values. This is because it is common practice to sequence each DNA fragment several times (i.e., with high coverage) to improve the accuracy of downstream genetic analyses [?, ?, ?, ?].
We envision that all GenStore data structures are built offline by the host or some other system (e.g., by the sequencing machine when the read set or reference genome are initially written to the SSD). This preprocessing overhead can be hidden by two essential initial steps of the genome sequence analysis pipeline: 1) sequencing and 2) basecalling. For example, in the current highest-throughput Illumina NovaSeq 6000 sequencer [?], sequencing and basecalling work in a pipelined manner and generate genomic read data at a limited throughput of 18.9 MB/s [?]. We analyze the throughput of GenStore’s preprocessing step (i.e., generating hash values and sorting reads) and observe that even a personal laptop [?] can provide 174 MB/s of preprocessing throughput. Therefore, GenStore’s preprocessing can be done in a pipelined manner with sequencing/basecalling, without decreasing the overall throughput of these steps. This low preprocessing overhead can be further amortized since the preprocessed data can be reused multiple times in different read mapping experiments.
Step 1. Data Fetching. GenStore-EM reads SRTable and SKIndex in batches, while exploiting the full internal bandwidth of the SSD. In fig:4.4, we refer to each batch of SRTable as an SRTable Batch and each batch of SKIndex as an SKIndex batch. The batch size is equal to the size of data that can be read in parallel by a multi-plane read operation for each chip (i.e., Number of Planes in the SSD × Page Size), which enables 100% utilization of the NAND flash chips while reading a batch. As shown in fig:4.4 (bottom), GenStore-EM stores the SRTable and SKIndex to NAND flash chips in an interleaved manner so that each of the data structures can be sequentially, evenly distributed across all the NAND flash chips.
GenStore-EM exploits the SSD’s full internal bandwidth using double buffering. As shown in fig:4.4, GenStore-EM employs two sets of batch buffers in the internal DRAM: SRTable Buffer (for SRTable) and SKIndex Buffer (for SKIndex), each of which can store two batches of the respective data structure. After Step 1 finishes fetching Batch#i, it proceeds to fetching Batch#i + 1, while Step 2 starts working on Batch#i. If the two steps work with the same throughput, we only need to buffer two batches for each data structure. For example, to enable double-buffering in an 8-channel SSD (with four 2-plane dies per channel and 16-KiB pages), the batch buffers require 8MB DRAM space in total.
Step 2. Exact-Match Filtering. Step 2 scans through each batch of SRTable and SKIndex stored in SRTable Buffer and SKIndex Buffer, respectively, comparing the fingerprints (strong hash values) with a simple hardware comparator. When (where is the fingerprint of , and and are the -th read and -th k-mer in the current batch, respectively), Step 2 scans SKIndex while increasing until it finds such that . If , it is guaranteed that no exact match exists for read , so GenStore-EM sends to the host for the read mapping process. When , i.e., the two fingerprints are identical, GenStore-EM marks the read as an exactly matching read.
Due to the simple computation in Step 2, the execution time of GenStore-EM is bottlenecked by Step 1 (Data Fetching). As explained, Step 1 only streams the data structures in batches from the underlying NAND flash chips to the internal DRAM, leveraging the SSD’s full internal bandwidth. Therefore, the performance of GenStore-EM can be easily scaled up by increasing the SSD’s internal parallelism (e.g., by deploying more channels or using low-latency NAND flash memory [?, ?, ?]).
GenStore-NM for Non-Matching Reads
Approach Overview
GenStore-NM filters most of the non-matching reads, i.e., reads that would not align to any subsequence in the reference genome. This is motivated by the fact that in read mapping, a large fraction of reads might not align to the reference genome due to 1) the high sequencing error rate (in long reads) and/or 2) high genetic variation between the compared genomes (in both short and long reads). To illustrate this, we analyze four read mapping use cases, one with read sets with high sequencing error rates, and three with high genetic variation in the compared genomes. Use cases with high genetic variation include 1) samples from rapidly-evolving species (such as SARS-CoV-2 [?]) that have high genetic variation compared to the reference genome, 2) samples with no known reference genomes, and 3) mapping a read set against the human reference genome to filter out human contamination, i.e., reads that have been sequenced from human-origin contaminant DNA in a non-human sample.5 For each use case (except for the Contamination use case), we analyze two different combinations of the input read set and the reference. Table 4.1 summarizes the result of this analysis by showing input read sets, the properties of each read set (e.g., read length and dataset size), reference genomes, and the percentage of reads in each read set that align to subsequences in the reference genome. We observe that a large fraction of reads (31.7%–99.6%) within a read set does not align to any subsequence in the reference genome. Quickly filtering this large fraction of non-aligning reads in the SSD can reduce the large data movement from the storage and expensive ASM computation for reads that would not align.
| Use case | Input read set (Short/Long) | Size [GB] | Reference | Align [%] |
| Sequencing errors | ERR3988483 (L) [?] | 54 | hg38 [?] | 47.4 |
| HG002_ONT_20200204 (L) [?] | 371 | 69.3 | ||
| Rapidly evolving samples | SRR5413248 (L) [?] | 1.69 | NZ_NJEX02 [?] | 60.0 |
| SRR12423642 (S) [?] | 0.466 | NC_045512.2 [?] | 23.1 | |
| No reference | SRR6767727 (L) [?] | 12.4 | NZ_NJEX02 [?] | 0.35 |
| SRR9953689 (L) [?] | 15.9 | 37.0 | ||
| Contamination | SRR9953689 (L) [?] | 15.9 | hg38 [?] | 1.0 |
Table 4.1. Fraction of aligning reads in various read mapping use cases with short and long reads.
To avoid expensive ASM computation for reads that would not be aligned, state-of-the-art read mappers commonly employ a step called chaining (described in Section 2.3.1), which calculates each read’s similarity score (called chaining score) to the reference genome and filters out reads with a low score. GenStore-NM uses this basic idea of chaining to build an in-storage filter.
Key Challenges. Calculating a chaining score in the SSD is challenging because finding the best chaining score requires performing an expensive dynamic programming (DP) algorithm on every potential matching location (i.e., seed) within a read (explained in Section 2.3.1). Normally this operation has time and space complexity, where is the number of seeds. Even though a chaining score can be approximated accurately in time and space by considering only seeds at a time [294], we observe that some long reads can have up to thousands of seeds due to their length. Therefore, designing a chaining accelerator to perform an expensive DP algorithm on these large reads () can incur significant performance or area overheads.
Key Ideas. To avoid such expensive chaining, GenStore-NM selectively performs a fast version of chaining only on reads with a small number of seeds and sends other reads to the host system for full read mapping (including complete chaining). This idea is based on our key observation that 1) a read with a large number of seeds most likely aligns to the reference genome and does not require in-storage filtering, and 2) selective chaining can filter many non-aligning long reads, without requiring costly hardware resources in the SSD. Figure 4.5 shows the alignment probability of a read in a long read dataset (SRR5413248 [?] in Table 4.1) to subsequences in the reference genome (NZ_NJEX02 [?]), as a function of the number of seeds per read (). The average read length in this dataset is 10K base pairs and the number of seeds goes up to several thousands for some reads. We observe that reads with a sufficiently large number of seeds are very likely to align to subsequences in the reference genome (e.g., at least 85% of reads with seeds align). Such reads can be directly sent to the CPU for full read mapping (bypassing the in-storage chaining-based filter).
Figure 4.5. Alignment probability as a function of the number of seeds per read in a long read mapping use case.
We extend this analysis to read datasets from various organisms commonly used in genomics studies: E. coli [?], yeast [?], thale cress [?], fruit fly [?], mouse [?], and human [?]. We observe that when a read has , 128, or 256 seeds, it aligns with average probabilities of 88.87%, 91.32%, and 93.84%, respectively. Based on these observations, we design GenStore-NM to selectively perform chaining only on reads with fewer than seeds, while sending reads with at least seeds to the host system.6 This selective chaining significantly reduces the chaining execution time and additional hardware area cost, while filtering most reads that would not align to the reference genome.
Design of GenStore-NM
Figure 4.6 shows the overview of GenStore-NM that filters out most of the non-matching reads in three steps. In Step 1, GenStore-NM reads the input read set from the flash chips, generates minimizer k-mers for each read (as explained in Section 2.3.1), and looks up each minimizer in a K-mer Index (KmerIndex) to find the potential matching locations, i.e., seeds (① in Figure 4.6). In Step 2, GenStore-NM counts the number of seeds in each read to decide if the read needs to go through chaining (②). To further improve overall performance, Step 2 also filters out reads with too few seeds (i.e., ), which would not align to the reference and thus would be filtered anyway by the baseline read mapper [294]. In Step 3, GenStore-NM filters reads based on their chaining scores using a fast and efficient chaining accelerator (③). If a read has at least one chain with a score above a specified threshold, it is sent to the CPU for mapping. Otherwise, the read is filtered. All three steps run in a pipelined manner.
Figure 4.6. Overview of GenStore-NM.
Data Structures. We carefully design the KmerIndex to reduce the SSD’s internal DRAM capacity required for storing it. KmerIndex, similar to the index used by the baseline read mapping tool (i.e., Minimap2 [294]), is a hierarchical hash table. To reduce the memory capacity required for storing the KmerIndex, we make three modifications: 1) not store the reference genome since it is not needed by our approach, 2) not store seeds with many matching locations (e.g., more than 495 locations in the baseline read mapper [294])7 since read mappers usually ignore such seeds in the chaining process [294], and 3) increase the number of hash table buckets so that each bucket holds one minimizer. Increasing the number of buckets increases the false positive rate in the filter, which leads to finding extra seeds and performing extra chaining operations (without loss of accuracy). We make this trade-off to reduce the KmerIndex’s size and the required memory space. These optimizations reduce the size of the index for the human reference genome [294] from 5.8 GB to 2.9 GB, which enables GenStore-NM to easily store the KmerIndex in the limited DRAM space inside the SSD.
Step 1: Seed Finding. This step finds the potential matching locations of a read (i.e., seeds) in the KmerIndex. GenStore-NM first reads the input read set from all flash chips (① in Figure 4.6). GenStore-NM exploits the full internal bandwidth of the SSD by reading the read set in parallel via a multi-plane read operation for each chip (same as GenStore-EM, Section 4.2.2). In a shifting buffer (called the K-mer Window) in the channel-level accelerator, GenStore-NM stores the most recently read k-mers of each read. For each sliding window of k-mers,8 GenStore-NM finds the minimizer of the window (described in Section 2.3.1) using a 64-bit Integer Mix hash function (hash64) [?] in the SSD-level accelerator (②). GenStore-NM queries each minimizer in the KmerIndex until it reads seeds (e.g., ) or it reaches the end of the read (③). Each index query takes up to two memory accesses (to visit the two levels of the hash table). GenStore-NM stores the seeds in the Location Buffer in the channel-level accelerator (④), and moves to Step 2.
Step 2: Seed Count-Based Filtering. This step compares the number of seeds in the Location Buffer with a lower bound and an upper bound . If a read has fewer than matching seeds, it is filtered since it will not meet the minimum chaining score requirement of the baseline read mapper [294].9 If the read has more than seeds, it means that the read will very likely align to the reference (e.g., reads with at least 64 seeds in Figure 4.5) and thus require the full read mapping process. GenStore-NM sends such reads to the host system for the full read mapping process. This way, the read mapping process of the unfiltered reads can run concurrently with GenStore’s filtering operations. For any other read, GenStore-NM performs chaining in the SSD in Step 3.
Step 3: Chaining-Based Filtering. This step performs chaining (see Section 2.3.1), a step commonly used in state-of-the-art read mappers [294, 702, ?] to filter out reads with low chaining scores and send reads with high chaining scores to the CPU to undergo the full read mapping process. The key difference in GenStore-NM’s chaining process compared to existing read mappers is that GenStore-NM selectively performs chaining only on reads with lower seed counts than a threshold . Such selective chaining is based on our two key observations; 1) a long read with many seeds most likely aligns to the reference genome and thus does not require in-storage filtering, and 2) selective chaining can filter many non-aligning long reads, without requiring costly hardware resources in the SSD (as shown in Section 4.2.3).
We design GenStore-NM’s chaining unit based on the chaining algorithm used in Minimap2 [294], a state-of-the-art baseline read mapper. A chain is computed from a sequence of seeds 10 of lengths , respectively. For a given seed , () denotes the ending position of the seed’s matching location in the reference genome (the read). The chaining score acts as an approximation of an alignment score, increasing linearly with the number of matching base pairs between the read and the reference, and decreasing with the size of gaps between the seeds. The chaining score is defined as follows (based on [294]):
where is the best chaining score which can be computed with the seeds . Given a chain whose last seed is , (also called the match score) is the number of new base pairs added to the chain after adding . (also called the gap penalty) subtracts from the chain score based on the distance between and in the reference genome.11
GenStore-NM’s Chaining-Based Filter (in Figure 4.6) consists of 1) a Chaining Buffer to store , , , and values and 2) a Chaining Processing Element (PE) based on (3). Figure 4.7 shows the design of the Chaining PE in the channel-level accelerator. We reduce the latency and size of this unit by approximating multiplication with shift operations. We ensure that our hardware optimizations always over-estimate the chaining score so that we do not filter out any potential read mappings. GenStore-NM does not affect the accuracy of the read mapper because the filter performs the same computations as the baseline chaining filter for reads with seeds inside SSD. The chaining PE needs to be executed times per read where is the number of seeds per read and is the DP-iterations of each seed. Due to the limited number of seeds that go through the chaining step, we limit the number of chaining units that are needed to match the full internal bandwidth of SSD.
Figure 4.7. Chaining processing element (PE) in GenStore-NM.
Similar to GenStore-EM, the steps of GenStore-NM are pipelined. The performance of GenStore-NM can be easily scaled up by increasing the SSD’s internal parallelism (e.g., by deploying more channels or using low-latency NAND flash memory) [?, ?, ?].
GenStore Flash Translation Layer (FTL)
GenStore requires simple changes to the existing FTL code.
GenStore FTL Metadata. GenStore metadata includes the mapping information of the data structures necessary for read mapping acceleration, which enables access to the data structures without the L2P mapping table of the regular FTL. In accelerator mode, where GenStore operates as an accelerator, GenStore also keeps in internal DRAM other metadata structures of the regular FTL (e.g., the page status table and block read counts [?, ?]) which need to be updated during the filtering process. We carefully design GenStore to only sequentially access the underlying NAND flash chips while operating as an accelerator, so it requires only a small amount of metadata to access the stored data.
Data Placement. GenStore needs to properly place its data structures to enable the full utilization of the internal SSD bandwidth in accelerator mode. When each data structure is initially written to the SSD, GenStore sequentially and evenly distributes it across NAND flash chips. We design GenStore to store every data structure using multiple sets of NAND flash blocks such that each block set consists of NAND flash blocks with the same block offset across the planes in a die. For example, a die’s block set includes all NAND flash blocks whose offset is in the die. Such data placement enables GenStore not only to always perform multi-plane read operations during the filtering process, but also to significantly reduce the size of GenStore metadata. For example, suppose that a GenStore-enabled SSD consists of 128 2-plane NAND flash dies, and the block size is 12 MB (i.e., the size of each block set would be 24 MB). In such a case, GenStore can specify the physical location of a 30-GB data structure by maintaining only the list of 1,250 (30 GB/24 MB) physical block addresses. This way, GenStore significantly reduces the size of the necessary mapping information from 300 MB (with conventional 4-KiB page mapping) to only 5 KB ( bytes), and the saved internal DRAM space can be used for loading data structures in the accelerator mode.
SSD Management Tasks. In accelerator mode, GenStore stops working as a regular SSD. It only reads data structures to perform filtering, and does not write any new data. Therefore, GenStore does not require any write-related SSD-management tasks such as garbage collection [?, 563, ?, ?, ?] and wear-leveling [?, ?, ?].
The other tasks necessary for ensuring data reliability, such as refreshing data to avoid uncorrectable errors due to data retention and read disturb [?, ?, ?, ?, ?, ?, ?, ?, ?, ?], can be done before or after the filtering process, for two reasons. First, GenStore significantly limits the amount of data whose retention age would exceed the manufacturer-specified threshold for reliable operation (e.g., 1 year [?]) during the filtering process, since GenStore’s filtering process takes a short time.12 GenStore simply refreshes such data [?, ?, ?, ?] before starting the filtering process. Second, GenStore-FTL can easily avoid read disturbance errors for data with high read counts [?, ?] since GenStore sequentially reads NAND flash blocks only once during filtering. After the filtering process, to prevent read disturb errors in future filtering processes or regular accesses, GenStore refreshes pages that store a data structure if the structure’s read count exceeds a certain threshold.
Evaluation Methodology
Evaluated Systems. We show the benefits of GenStore when it is integrated with the state-of-the-art software and hardware read mappers. To this end, we evaluate the following systems:
Base: Minimap2 [294] is a state-of-the-art software read mapper baseline for both short and long reads. GenCache [419] and Darwin [?] are state-of-the-art hardware read mappers for short and long reads, respectively.
GS-Ext: Base integrated with an implementation of the GenStore filter without in-storage support (Ext stands for external to storage). GS-Ext concurrently filters reads while using Base to perform read mapping for unfiltered reads. The goal of evaluating GS-Ext is to decouple the effects of GenStore’s two major benefits: 1) alleviating I/O bottlenecks via efficient in-storage processing and 2) reducing the workload of the read mapper by filtering reads with simple operations. GS-Ext obtains the second benefit but not the first. For software read mappers, we evaluate a pure software implementation of GenStore that concurrently runs with Base.13 For hardware read mappers, we evaluate a hardware implementation of GenStore outside the SSD.
GS: Base integrated with the hardware GenStore filtering accelerators, GenStore-EM and GenStore-NM, as described in Sections 4.2 and 4.3. GS concurrently filters reads inside the SSD while using Base to perform read mapping for unfiltered reads.
The source code of GenStore and scripts and datasets can be freely downloaded from https://github.com/CMU-SAFARI/GenStore.
Area and Power. We implement GenStore’s logic components in Verilog HDL. We synthesize our designs using the Synopsys Design Compiler [?] with a 65nm process technology node to estimate latency, area and power consumption. We use the SSD power values of the Samsung 3D NAND flash-based SSD [?], and DRAM power values based on DDR4 model [?, ?].
Performance Modeling. We evaluate hardware configurations using two state-of-the-art simulators to analyze the performance of GenStore. We model DRAM timing with the DDR4 interface [?, ?] in Ramulator [?, ?], a widely-used, cycle-accurate DRAM simulator. We model SSD performance using MQSim [?], a widely-used simulator for modern SSDs. We model the end-to-end throughput of GenStore based on the throughput of each GenStore pipeline stage: accessing NAND flash chips, accessing internal DRAM, accelerator computation, and transferring unfiltered data to the host. We estimate the performance of GenCache and Darwin accelerators based on the data reported in the original works [?, 419].
Real System Results. We use real systems to evaluate all software configurations. For a given reference genome, separate reference indexes are generated for each sequencing technology using the software read mapper’s default settings for each technology [294]. All other read mapping parameters are kept at their default values. We perform all experiments on an AMD® EPYC® 7742 CPU with 1TB DDR4 DRAM (available in user space). We measure power in these systems using AMD® µProf [?]. We carefully evaluate GenStore’s benefits over the baseline in a conservative manner by using optimized configurations for all baselines. Our baselines fetch data from the SSD by sequentially reading the data in batches [294], while providing sufficiently large DRAM capacity to contain all data that gets reused during read mapping. We use the number of threads that leads to each software configuration’s best performance (i.e., execution time): 128 threads for Base and 16 threads for GS-Ext in our experimental setup.14
SSD Configurations. We analyze the benefits of GenStore on three SSD configurations: 1) a low-end SSD (SSD-L) [?] with a SATA3 interface [?], 2) a mid-end SSD (SSD-M) [?] using a PCIe Gen3 M.2 interface [?], and 3) a high-end SSD (SSD-H) [?] with a PCIe Gen4 interface [?].
Datasets. For short read experiments, we use the hg38 human reference genome [?]. In Section 4.1, we use real short reads (SRR2052419 [?], 19.6 GB). In Section 4.4, to flexibly and controllably analyze the effect of read sets with different features, we simulate read sets with various sizes (up to 440 GB) and different fractions of exactly-matching reads (75% and 85%) using the Mason 2 genomic read simulator [?]. We generate reads with different exact-match rates by introducing sequence mutations (uniformly randomly drawn from the gold-standard mutation list for the human sample NA12878 [?]) to the reference genome. For the long read experiments, we use the reference genome and read set from Table 4.1 in Section 4.2.3. To flexibly analyze the effect of data size, we generate larger read sets by concatenating the original read sets several times.
Evaluation
Area and Power Analysis
We propose GenStore as an in-storage processing system that supports both accurate short reads and error-prone long reads with different levels of genetic variation between compared genomes. Table 4.2 shows the area and power consumption of each logic unit used in GenStore. In the first column, the table shows the different logic units used in GenStore along with the width of each entry. The second column shows the number of instances of each unit in an 8-channel SSD. We find the number of instances based on the frequency of and the required throughput from each unit such that GenStore can process data concurrently read from all planes in all SSD channels. GenStore’s hardware units work at different clock frequencies, with the lowest frequency being 300 MHz (for each channel-level Chaining PE). While the hardware units can be designed to operate at higher frequency, their throughput is sufficient when operating at lower frequencies since the end-to-end execution time of GenStore is bottlenecked by NAND flash reads. The third and fourth columns show the area and power of one instance of each unit.
| Logic unit | # of instances | Area [] | Power [mW] |
| Comparator (64-bit) | 1 per SSD | 0.0007 | 0.14 |
| -mer Window (10 19-bit) | 2 per channel | 0.0018 | 0.27 |
| Hash Accelerator (64-bit) | 2 per SSD | 0.008 | 1.8 |
| Location Buffer (64 64-bit) | 1 per channel | 0.00725 | 0.37375 |
| Chaining Buffer (50 (16-bit + 64-bit)) | 1 per channel | 0.008 | 0.95 |
| Chaining PE | 1 per channel | 0.004 | 0.98 |
| Control | 1 per SSD | 0.0002 | 0.11 |
| Total for an 8-channel SSD | - | 0.20 | 26.6 |
Table 4.2. Area and power breakdown of GenStore’s logic
The total hardware area needed for GenStore is very small (0.20 mm at 65 nm and 0.02 mm at 14 nm, only 0.006% of a 14nm Intel Processor [?]).15 The area overhead of GenStore hardware (0.06 mm at 32 nm) is less than 9.5% of the three 28nm ARM Cortex R4 processors [?] in a SATA SSD controller [?].
The area and power of most logic units (except for the comparator, the hash64 accelerator, and the control unit) increase linearly with the channel count. Each instance of the comparator and hash64 accelerator supports multiple channels (up to 12 and 4 channels, respectively). Therefore, these units scale by or , respectively. The area and power of GenStore’s control unit remains the same across different channel counts.
GenStore-EM Analysis
We analyze the benefits of GenStore-EM for a 22-GB short read set where 80% of reads exactly match some subsequence in the reference genome (see Section 4.3 for input generation methodology), on a system with three different SSD configurations: SSD-L, SSD-M, and SSD-H.
Integration with a Software Read Mapper. fig:4.8a shows the execution time of four read mapper configurations: 1) Base (Minimap2 [294]), 2) SIMD, an extension of Base with a SIMD implementation of a baseline exactly-matching read filter using 128-bit SIMD instructions, 3) GS-Ext, and 4) GS. We divide the execution time between Alignment (chaining and alignment’s contribution to end-to-end execution time) and Other (file access, seeding, and exact match filtering’s contribution to end-to-end execution time).
We make four observations from Figure 4.8. First, for all SSD types, GS significantly outperforms Base and SIMD by 2.07-2.45 and 1.66-2.09, respectively, by alleviating the cost of moving data from the SSD to the host CPU and removing the burden of finding exactly-matching reads from the rest of the system (DRAM and the processor). Second, GS-Ext provides significant performance improvements over both Base and SIMD in SSD-M and SSD-H. However, GS-Ext provides limited benefits over SIMD in SSD-L since its performance is bottlenecked by the low external I/O bandwidth. Third, even though SIMD also filters out the same number of reads and reduces the alignment time similarly to GS and GS-Ext, its average performance benefit over Base () is quite limited compared to those of GS () and GS-Ext (). This is because 1) both GS and GS-Ext reduce the number of memory accesses per read and convert the random memory accesses to more efficient streaming accesses, and 2) GS addresses the I/O bottlenecks due to limited external SSD bandwidth. Based on our observations, we draw two conclusions. First, GenStore-EM leads to large performance improvements in short read genomic analysis by efficiently filtering large amounts of data in storage. Second, even without in-storage processing support, the key idea of GenStore-EM can significantly improve the performance of the state-of-the-art software read mapper especially when using high-bandwidth SSDs (e.g., SSD-M and SSD-H).
Figure 4.8. GenStore-EM performance under different SSDs, when integrated with a (a) software read mapper (b) hardware read mapper.
Integration with a Hardware Read Mapper. fig:4.8b shows the execution time of three hardware read mapper configurations: 1) Base (GenCache [419]), 2) GS-Ext, and 3) GS.16 Integrating GenStore with existing accelerators requires no architectural changes to GenStore and the accelerators because GenStore operates directly on the original data that is stored in the SSD, before any accelerator-specific operation starts. The only factor that GenStore needs to consider is to generate its outputs (i.e., the information of unfiltered reads) in the format that the accelerator needs as its inputs. The host system is responsible for orchestrating the execution and data flows between GenStore and the accelerator.
We make two observations based on fig:4.8b. First, GS significantly outperforms Base by , , and on systems with SSD-L, SSD-M, and SSD-H, respectively. Second, GS-Ext performs significantly slower than Base (-) on all systems since GenStore-EM requires accessing the large SSIndex data structure (Section 4.2.2), while GS-Ext suffers from limited SSD external bandwidth. We conclude that the in-storage processing approach in GenStore effectively addresses the I/O bottleneck, which becomes even more significant with hardware accelerators that address the computation bottleneck.
Effect of Read Set Features on Performance. We study the benefits of GenStore-EM depending on the characteristics of input read sets. To this end, we evaluate GenStore-EM while changing two key characteristics: 1) the input read set size and 2) exactly-matching read rate. These two factors affect the data movement savings () of GenStore as governed by
Evaluation
(4):
where is the size of the reference genome and its index (e.g., 7 GB for humans [294]), is the size of the read set, and in GenStore-EM is the exactly-matching read rate of the read set.
fig:4.9a shows the execution time of Base and GS for the baseline software read mapper (Minimap2 [294]) for input read sets with different sizes (1x, 10x, and 20x larger than the size of our default 22-GB short read set) and different exactly-matching read rates (75% and 85%) on a system with SSD-H. We make two observations. First, GS’s performance benefit grows as input size increases (from 2.62× to 4.75×) due to larger data movement savings. Since is constant, and the performance benefits of GenStore-EM increase with larger (see Equation (4.4)). Second, GS’s performance benefit increases with higher exactly-matching read rates (from 3.46× to 6.05× for the largest read set) because with a larger exactly-matching read rate (i.e., in Equation (4.4)), data movement saving () increases, and the time spent on mapping the unfiltered reads decreases. Mapping the unfiltered reads is the key contributor to the end-to-end execution time of GS since it has larger execution time compared to concurrently running GenStore-EM operations in the SSD. We conclude that the benefits of GenStore-EM, when integrated with the software read mapper, increases with larger read sets and with larger exactly-matching read rates.
Figure 4.9. GenStore-EM performance versus input size and exact match rate, when integrated with (a) software read mapper (b) hardware read mapper.
fig:4.9b shows the execution time of Base and GS for a baseline hardware read mapper (GenCache [419]). We make two observations. First, GS’s performance benefit increases with larger input sizes (from 1.52× to 3.13×) due to its larger data movement reduction. Second, GS’s performance benefit does not increase with higher exactly-matching read rates. This is because, with the hardware read mapper, the end-to-end performance of GS is dominated by the execution time of GenStore-EM’s filter operations inside the SSD, which only depends on the input read set size and not on the exact-match rate. We conclude that the benefits of GenStore-EM, when integrated with the hardware read mapper, increases with larger input read set sizes.
GenStore-NM Analysis
We analyze the benefits of GenStore-NM for a 12.4-GB read set (the first No reference use case in Table 4.1) with 99.65% of reads not aligning on a system with three different SSD configurations: SSD-L, SSD-M, and SSD-H.
Integration with a Software Read Mapper. fig:4.10a shows the execution time of two read mapper configurations: 1) Base (Minimap2 [294]), which already incorporates the chaining filter, and 2) GS.17 We observe that GS outperforms Base by 22.4×, 29.0×, and 27.9× on systems with SSD-L, SSD-M, and SSD-H, respectively.18 The reason is that GS alleviates the cost of data movement from SSD to the processor and removes the burden of mapping a large fraction of reads from the rest of the system (DRAM and the processor).
Figure 4.10. GenStore-NM performance under different SSDs, when integrated with (a) software read mapper (b) hardware read mapper.
Integration with a Hardware Read Mapper. fig:4.10b shows the execution time of three hardware read mapper configurations: 1) Base (Darwin [?]), 2) GS-Ext, and 3) GS. We make two observations based on fig:4.10b. First, GS significantly outperforms Base by 19.2×, 6.86×, and 6.85× on systems with SSD-L, SSD-M, and SSD-H, respectively. The reason is that GS alleviates the cost of data movement from SSD to the accelerator and removes the burden of read mapping for the filtered reads from the rest of the system (DRAM and the accelerator). Second, GS-Ext does not provide significant performance benefits compared to Base in systems with SSD-L and SSD-M since the execution time of GS-Ext is dominated by the I/O overhead of bringing reads from SSD to the accelerator. GS-Ext performs 2.50× faster than Base in systems with SSD-H since the I/O bottlenecks are partially alleviated with SSD-H. However, the benefits of GS-Ext are limited compared to GS since GS significantly alleviates the I/O overhead of bringing reads from SSD to the accelerator with all three SSD configurations.
Effect of Read Set Features. We study how the benefits of GenStore-NM vary depending on the characteristics of input read sets. To this end, we evaluate GenStore-NM while changing two key characteristics: 1) the input read set size and 2) alignment rates (the fraction of reads in the read set that align to the reference genome). We use input sets with different sizes (1×, 10×, and 20× larger than the size of our default 12.5GB read set) with different alignment rates (0.3% and 37%, corresponding to the first and second No reference use cases in Table 4.1), on a system with SSD-H. Figure 4.11 shows the execution time of Base and GS for the baseline software read mapper [294] (Figure 4.11a) and the baseline hardware read mapper [?] (Figure 4.11b).
We make two main observations from Figure 4.11. First, for both hardware and software read mappers, GS’s performance benefits vary little as the input size changes. The reason is that is very small (14.6 MB) for this experiment. Therefore, data movement saving ( in (4)) mainly correlates with alignment rate (i.e., ). Second, for both software and hardware read mappers, GS’s performance benefit increases as the ratio of non-aligning reads increases (i.e., as alignment rate reduces), because with higher values of , both 1) increases and 2) the time spent on mapping unfiltered reads decreases. We conclude that GenStore-NM provides high performance benefits to both software and hardware read mappers with different input sizes and its benefits increase with lower alignment rates.
Figure 4.11. GenStore-NM performance versus input size and read alignment rate, when integrated with (a) software read mapper (b) hardware read mapper.
Energy Analysis
To demonstrate the energy benefits of different GenStore modes, we obtain the energy of the host processor, the host-side DRAM, the DRAM inside the SSD, the communication between the SSD and the host, active and idle energy of the SSD, and the energy of the logic units used in GenStore (Section 4.4.1). We calculate the energy of each component based on its idle and dynamic power consumption and its execution time. We observe that by filtering out large amounts of data, GenStore reduces the end-to-end energy consumption of read mapping in all of our evaluations compared to Base (Minimap2 [294]). We measure the energy consumption for experiments on all SSD configurations. By filtering exact matches in a short read set with 80% exactly-matching read rate (see Section 4.3), GenStore-EM reduces the energy consumption by on average (up to) () across all storage configurations. By filtering non-matching reads in a long read set with a read alignment rate of 0.35% (the first No reference use case in Table 4.1), GenStore-NM reduces the energy consumption by on average (up to) () across all storage configurations.
Figure 4.12 shows the energy breakdown of Base and GS. We show energy breakdown between the host CPU, host DRAM, host SSD accesses, ISP logic units, in-storage DRAM, and SSD accesses during ISP. We observe that, by filtering a large number of low-reuse reads within the SSD, GenStore alleviates the energy burden on the rest of the system, particularly the host CPU which needs to perform the energy-intensive read mapping process.
Figure 4.12. Energy breakdown of different systems for (a) short read mapping and (b) long read mapping.
Figure 4.13 shows the energy breakdown of Base and GS, excluding the host CPU, to isolate the energy distribution between main memory and storage accesses across configurations. This breakdown also serves as an idealized study of a scenario in which energy-efficient specialized hardware units replace general-purpose CPUs for computation. We make three observations. First, GenStore-EM (for short reads) significantly reduces DRAM energy consumption due to its read-size -mer approach, which significantly reduces the number of memory accesses to the reference genome and its index structure. Second, GenStore-NM (for long reads) also significantly reduces overall DRAM energy consumption (host and internal DRAM combined) due to its lightweight chaining filter that filters reads with a small number of seeds in a lightweight manner. Third, by filtering reads directly inside the SSD, GenStore also alleviates I/O energy overheads.
Figure 4.13. Energy breakdown of different systems, excluding the host CPU, for (a) short read mapping and (b) long read mapping.
Discussion
As sequencing technologies develop in the future, we expect that GenStore will still play an important role in genomic sequence analysis. We witness three major trends in sequencing technologies. First, the length and the accuracy of reads are expected to increase [?, 417, ?, ?, ?]. Second, short reads will continue to be widely used due to their very high accuracy and low cost [?, ?, ?]. Third, DNA sequencing machines are increasingly adopting data processing capabilities to perform both sequencing and genomic analysis within the same machine [34, ?, ?, ?, ?, ?].
Even with increases in long read accuracy (trend 1), GenStore-NM would continue to filter large numbers of reads that do not align to a reference genome due to genetic differences between the compared genomes [?, ?, ?, ?, ?, ?]. Given that accurate short reads are essential for many processes in genome analysis (trend 2), e.g., for polishing [?, ?, ?] and validating [?] long read sequences, GenStore-EM can continue to accelerate short read mapping by filtering out exactly-matching reads. With the push to provide DNA sequencing and preliminary genetic analysis on more portable integrated devices with limited compute resources and available DRAM capacity [34, ?, 417, ?] (trend 3), there will be a growing demand for data movement-minimizing systems like GenStore to quickly filter out a large fraction of reads at low cost and high efficiency [34, ?, ?, ?, ?, ?].
With higher availability of portable genome sequencers, genomic analyses will be performed more routinely [?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 417, ?, ?] and will need to provide much faster results [417, ?]. In-storage processing is crucial for meeting the huge demands for faster analyses that scale well to large numbers of genomic samples. Examples of these analyses include gene detection [?], alignment of reads from rapidly mutating organisms such as SARS-CoV-2 [?, ?], and studies of as-of-yet undiscovered microbes [?, ?, ?, ?]. In these analyses, GenStore-NM can effectively filter out [?, ?], [?], and [?, ?, ?] of the reads, respectively, thereby greatly improving the end-to-end
References
- [1][1]
- [2][2]
- [4][4]
- [34][34]
- [121][121]
- [243][243]
- [266][266]
- [267][267]
- [282][282]
- [294][294]
- [299][299]
- [363][363]
- [366][366]
- [416][416]
- [417][417]
- [419][419].
- [421][421]
- [422][422]
- [423][423]
- [424][424]
- [435][435]
- [440][440]
- [441][441]
- [442][442]
- [443][443]
- [444][444]
- [445][445]
- [446][446]
- [447][447]
- [448][448]
- [449][449]
- [450][450]
- [451][451]
- [452][452]
- [453][453]
- [459][459]
- [513][513]
- [514][514]
- [518][518]
- [519][519]
- [563][563]
- [598][598]
- [699][699]
- [700][700]
- [701][701]
- [702][702]
- [833][833]
- [834][834]
- [849][849]
- [850][850]
- [851][851]
- [852][852]
- [853][853]
- [854][854]
- [855][855]
- [856][856]
- [857][857]
- [858][858]
- [859][859]
- [860][860]
- [861][861]
- [862][862]
- [863][863]
- [993][993–1002]
- [994][993–1002]
- [995][993–1002]
- [996][993–1002]
- [997][993–1002]
- [998][993–1002]
- [999][993–1002]
- [1000][993–1002]
- [1001][993–1002]
- [1002][993–1002]
- [1003][1003–1007]
- [1004][1003–1007]
- [1005][1003–1007]
- [1006][1003–1007]
- [1007][1003–1007]
- [1008][1008–1011]
- [1009][1008–1011]
- [1010][1008–1011]
- [1011][1008–1011]





















