Jens Teubner
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Jens Teubner has a total of 32 co-authors. Here are the top co-authors by number of shared publications:
- Jan Mühlig
TU Dortmund University, Dortmund, Germany
4 shared publications Louis Woods
ETH Zurich, Zurich, Switzerland
4 shared publications- Roland Kühn
TU Dortmund University, Dortmund, Germany
4 shared publications Gustavo Alonso
ETH Zurich, Zurich, Switzerland
3 shared publications- Henning Funke
TU Dortmund University
3 shared publications Cagri Balkesen
Systems Group, Department of Computer Science, ETH Zurich, Switzerland
2 shared publications
Latest Publications
- Open Access
- 13 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 19-26
To stride or not to stride the memory access?
- 13 October 2025
- Published by Association for Computing Machinery (ACM)
- p. 19-26
Open AccessTo stride or not to stride the memory access?
- Open Access
- 22 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 1-4
Breaking the Cycle - A Short Overview of Memory-Access Sampling Differences on Modern x86 CPUs
- 22 June 2025
- Published by Association for Computing Machinery (ACM)
- p. 1-4
Open AccessBreaking the Cycle - A Short Overview of Memory-Access Sampling Differences on Modern x86 CPUs
- Open Access
- 24 January 2025
- Published by Springer Nature
- p. 117-143
MxKernel: A Bare-Metal Runtime System for Database Operations on Heterogeneous Many-Core Hardware
Large-scale data processing forms the core of modern online services, such as social media and e-commerce, calling for an ever-increasing performance with predictable service quality. Even though emerging hardware platforms can deliver the required performance, actually harnessing it and guaranteeing a certain service quality is still a challenge for application and system software developers. We argue that the major hindrance for applications and system software alike lies in the design of today’s system software architecture. The thread abstraction, for example, hides hardware characteristics, such as the memory topology or accelerators from applications and application behavior from the system software, forcing the latter to base resource management on assumptions while preventing the former from leveraging the potential of modern hardware. We present the as a novel system software architecture with the requirements of modern data-intensive applications in mind. Instead of threads, the provides s as control flows, short, closed units of work that can easily be annotated with application-specific hints giving a glimpse into an application’s future behavior. These hints are used by the to provide automatic synchronization and prefetching, as well as efficient dynamic resource partitioning to ensure performance isolation and the observance of quality of service requirements.
- 24 January 2025
- Published by Springer Nature
- p. 117-143
Open AccessMxKernel: A Bare-Metal Runtime System for Database Operations on Heterogeneous Many-Core Hardware
Large-scale data processing forms the core of modern online services, such as social media and e-commerce, calling for an ever-increasing performance with predictable service quality. Even though emerging hardware platforms can deliver the required performance, actually harnessing it and guaranteeing a certain service quality is still a challenge for application and system software developers. We argue that the major hindrance for applications and system software alike lies in the design of today’s system software architecture. The thread abstraction, for example, hides hardware characteristics, such as the memory topology or accelerators from applications and application behavior from the system software, forcing the latter to base resource management on assumptions while preventing the former from leveraging the potential of modern hardware. We present the as a novel system software architecture with the requirements of modern data-intensive applications in mind. Instead of threads, the provides s as control flows, short, closed units of work that can easily be annotated with application-specific hints giving a glimpse into an application’s future behavior. These hints are used by the to provide automatic synchronization and prefetching, as well as efficient dynamic resource partitioning to ensure performance isolation and the observance of quality of service requirements.
- Open Access
- 9 June 2024
- Published by Association for Computing Machinery (ACM)
- p. 1-10
How to Be Fast and Not Furious: Looking Under the Hood of CPU Cache Prefetching
Software-based prefetching is a powerful method for tolerating access penalties that are encountered by data processing systems: memory latency. Although the idea appears straightforward---simply informing the CPU about upcoming data accesses---the intricacies of its implementation remain insufficiently understood. Existing works demonstrate how to rewrite algorithms for prefetching, yet they often overlook the limitations and hardware implications of bringing data into the cache hierarchy. In this paper, we examine software-based prefetching thoroughly by delving into its implementation and identifying pitfalls across various platforms. Furthermore, we provide actionable insights and recommendations for developers seeking to boost their applications through this technique.
- 9 June 2024
- Published by Association for Computing Machinery (ACM)
- p. 1-10
Open AccessHow to Be Fast and Not Furious: Looking Under the Hood of CPU Cache Prefetching
Software-based prefetching is a powerful method for tolerating access penalties that are encountered by data processing systems: memory latency. Although the idea appears straightforward---simply informing the CPU about upcoming data accesses---the intricacies of its implementation remain insufficiently understood. Existing works demonstrate how to rewrite algorithms for prefetching, yet they often overlook the limitations and hardware implications of bringing data into the cache hierarchy. In this paper, we examine software-based prefetching thoroughly by delving into its implementation and identifying pitfalls across various platforms. Furthermore, we provide actionable insights and recommendations for developers seeking to boost their applications through this technique.
- 11 September 2023
- Published by Cassyni
DB/OS Co-Design in the MxKernel Project
Better integrating layers in the system software stack is seen as a promising way to leverage the potential of modern hardware technologies. In my talk I will describe our vision in the MxKernel project to make the co-design of databases and operating systems real. In MxKernel fundamentally change the process abstraction from threads to “tasks.” Tasks represent small units of work, rather than (lengthy) pieces of control flow. This makes them a better abstraction to enrich them with information about application characteristics. In the talk I will illustrate how this enables (a) automatic data prefetching by the task scheduler and (b) synchronization in multi-core environments with less developer effort, yet lower contention during execution.
- 11 September 2023
- Published by Cassyni
DB/OS Co-Design in the MxKernel Project
Better integrating layers in the system software stack is seen as a promising way to leverage the potential of modern hardware technologies. In my talk I will describe our vision in the MxKernel project to make the co-design of databases and operating systems real. In MxKernel fundamentally change the process abstraction from threads to “tasks.” Tasks represent small units of work, rather than (lengthy) pieces of control flow. This makes them a better abstraction to enrich them with information about application characteristics. In the talk I will illustrate how this enables (a) automatic data prefetching by the task scheduler and (b) synchronization in multi-core environments with less developer effort, yet lower contention during execution.
- Open Access
- 18 June 2023
- Published by Association for Computing Machinery (ACM)
- p. 27-34
Micro Partitioning: Friendly to the Hardware and the Developer
Modern hardware’s complexity has made studying hardware-conscious algorithms a relevant topic for many years. Partitioning algorithms, for instance, break data into bits that fit into fast CPU caches. Unfortunately, they are often challenging to design, develop, and maintain. While hardware-oblivious algorithms are easier to build, they may perform poorly when hardware or data deviate from expectations. In this paper, we introduce micro partitioning, which enhances the partitioning problem in a way that outperforms state-of-the-art solutions while being hardware-agnostic. By storing tuples in a tight address space, micro partitioning creates an access pattern that is friendly to both caches and translation lookaside buffers. We also show how micro partitioning interacts with task-based execution strategies in a symbiotic way, making micro partitioning intuitive to express for developers.
- 18 June 2023
- Published by Association for Computing Machinery (ACM)
- p. 27-34
Open AccessMicro Partitioning: Friendly to the Hardware and the Developer
Modern hardware’s complexity has made studying hardware-conscious algorithms a relevant topic for many years. Partitioning algorithms, for instance, break data into bits that fit into fast CPU caches. Unfortunately, they are often challenging to design, develop, and maintain. While hardware-oblivious algorithms are easier to build, they may perform poorly when hardware or data deviate from expectations. In this paper, we introduce micro partitioning, which enhances the partitioning problem in a way that outperforms state-of-the-art solutions while being hardware-agnostic. By storing tuples in a tight address space, micro partitioning creates an access pattern that is friendly to both caches and translation lookaside buffers. We also show how micro partitioning interacts with task-based execution strategies in a symbiotic way, making micro partitioning intuitive to express for developers.
- Open Access
- 18 June 2023
- Published by Association for Computing Machinery (ACM)
- p. 63-69
Towards Data-Based Cache Optimization of B+-Trees
The rise of in-memory databases and systems with considerably large memories and cache sizes requires the rethinking of the proper implementation of index structures like B+-trees in such systems. While disk block-sized nodes and binary search were considered as good in the past, smaller node sizes and cache-friendly linear search within nodes can be noticeably more performant nowadays. Considering the probabilistic distribution of lookup values to the B+-tree as part of a memory-friendly and cache-aware layout is a consequent next step, which is studied in this paper. Favoring frequently visited nodes and paths in the regard of cache hits can improve the overall performance of the tree and, thus, of the entire database system. We provide such an optimized B+-tree layout, which takes the probabilistic distribution of the lookup values as a basis. Experimental evaluation shows that choosing rather small node sizes in combination with our optimization algorithm can improve the performance by up to in comparison to a default baseline.
- 18 June 2023
- Published by Association for Computing Machinery (ACM)
- p. 63-69
Open AccessTowards Data-Based Cache Optimization of B+-Trees
The rise of in-memory databases and systems with considerably large memories and cache sizes requires the rethinking of the proper implementation of index structures like B+-trees in such systems. While disk block-sized nodes and binary search were considered as good in the past, smaller node sizes and cache-friendly linear search within nodes can be noticeably more performant nowadays. Considering the probabilistic distribution of lookup values to the B+-tree as part of a memory-friendly and cache-aware layout is a consequent next step, which is studied in this paper. Favoring frequently visited nodes and paths in the regard of cache hits can improve the overall performance of the tree and, thus, of the entire database system. We provide such an optimized B+-tree layout, which takes the probabilistic distribution of the lookup values as a basis. Experimental evaluation shows that choosing rather small node sizes in combination with our optimization algorithm can improve the performance by up to in comparison to a default baseline.
- Open Access
- 10 May 2022
- Published by Springer Nature in The VLDB Journal
- Vol. 31 (6) , 1171-1184
Low-latency query compilation
Query compilation is a processing technique that achieves very high processing speeds but has the disadvantage of introducing additional compilation latencies. These latencies cause an overhead that is relatively high for short-running and high-complexity queries. In this work, we present Flounder IR and ReSQL, our new approach to query compilation. Instead of using a general purpose intermediate representation (e.g., LLVM IR) during compilation, ReSQL uses Flounder IR, which is specifically designed for database processing. Flounder IR is lightweight and close to machine assembly. This simplifies the translation from IR to machine code, which otherwise is a costly translation step. Despite simple translation, compiled queries still benefit from the high processing speeds of the query compilation technique. We analyze the performance of our approach with micro-benchmarks and with ReSQL, which employs a full translation stack from SQL to machine code. We show reductions in compilation times up to two orders of magnitude over LLVM and show improvements in overall execution time for TPC-H queries up to 5.5 $$\times $$ over state-of-the-art systems.- 10 May 2022
- Published by Springer Nature in The VLDB Journal
- Vol. 31 (6) , 1171-1184
Open AccessLow-latency query compilation
Query compilation is a processing technique that achieves very high processing speeds but has the disadvantage of introducing additional compilation latencies. These latencies cause an overhead that is relatively high for short-running and high-complexity queries. In this work, we present Flounder IR and ReSQL, our new approach to query compilation. Instead of using a general purpose intermediate representation (e.g., LLVM IR) during compilation, ReSQL uses Flounder IR, which is specifically designed for database processing. Flounder IR is lightweight and close to machine assembly. This simplifies the translation from IR to machine code, which otherwise is a costly translation step. Despite simple translation, compiled queries still benefit from the high processing speeds of the query compilation technique. We analyze the performance of our approach with micro-benchmarks and with ReSQL, which employs a full translation stack from SQL to machine code. We show reductions in compilation times up to two orders of magnitude over LLVM and show improvements in overall execution time for TPC-H queries up to 5.5 $$\times $$ over state-of-the-art systems. - Open Access
- 1 July 2021
- Published by Association for Computing Machinery (ACM) in Proceedings of the VLDB Endowment
- Vol. 14 (12) , 2691-2694
Low-latency compilation of SQL queries to machine code
Query compilation has proven to be one of the most efficient query processing techniques. Despite its fast processing speed, the additional compilation times of the technique limit its applicability. This is because the approach is most beneficial only when the improvements in processing time clearly exceed the additional compilation time. Recently the feasibility of query compilers with very low compilation times has been shown. This may prove query compilation as a merely universal approach. In this article and in the corresponding live demo, we show the capabilities of the ReSQL database system, which uses the intermediate representation Flounder IR to achieve very low compilation times. ReSQL reduces the compilation times from SQL to machine code compared to existing LLVM-based techniques by up to 101.1x for real-world analytic queries.
- 1 July 2021
- Published by Association for Computing Machinery (ACM) in Proceedings of the VLDB Endowment
- Vol. 14 (12) , 2691-2694
Open AccessLow-latency compilation of SQL queries to machine code
Query compilation has proven to be one of the most efficient query processing techniques. Despite its fast processing speed, the additional compilation times of the technique limit its applicability. This is because the approach is most beneficial only when the improvements in processing time clearly exceed the additional compilation time. Recently the feasibility of query compilers with very low compilation times has been shown. This may prove query compilation as a merely universal approach. In this article and in the corresponding live demo, we show the capabilities of the ReSQL database system, which uses the intermediate representation Flounder IR to achieve very low compilation times. ReSQL reduces the compilation times from SQL to machine code compared to existing LLVM-based techniques by up to 101.1x for real-world analytic queries.
- 1 August 2020
- Published by VLDB Endowment in Proceedings of the VLDB Endowment
- Vol. 13 (12) , 2849-2852
Like water and oil
In response to physical limitations, hardware has changed significantly during the past two decades. As the database community we have no chance but adapt to those changes in order to benefit from these and further hardware advances.
- 1 August 2020
- Published by VLDB Endowment in Proceedings of the VLDB Endowment
- Vol. 13 (12) , 2849-2852
Like water and oil
In response to physical limitations, hardware has changed significantly during the past two decades. As the database community we have no chance but adapt to those changes in order to benefit from these and further hardware advances.