• Home
  • Search
  • Locality Aware Zeroing: Exploiting Both Hardware and Software Semantics
  • https://doi.org/10.25911/5d626b97cd1dfCopy DOI Icon

Locality Aware Zeroing: Exploiting Both Hardware and Software Semantics

  • Abstract
  • Literature Map
  • References
  • Similar Papers
Abstract

Both managed and native languages use memory safety techniques to ensure program correctness and as a security defense. A critical element of memory safety is to initialize newly allocated memory to zero before making it available to the program. In this thesis I explore the performance impact of zero initialization and show that it comes with a substantial overhead. I also show that this overhead can be largely removed with new designs that exploit both the language semantics of zero initialization and the hardware semantics of memory hierarchies Programmers increasingly choose managed languages to develop large scale applications. One of the reasons is that managed languages offer automatic memory management (garbage collection), which protects against memory leaks and dangling pointers. Garbage collection encourages programs to allocate large numbers of small and medium size objects, leading to significant overheads of zero initializing objects — on average the direct cost of zeroing is 4% to 6% and up to 50% of total application time on a variety of modern processors. Zeroing incurs indirect costs as well, which include memory bandwidth consumption and cache displacement. Existing virtual machines (VMs) either: a) minimize direct costs by zeroing in large blocks, or b) minimize indirect costs by integrating zeroing into the allocation sequence to reduce cache displacement. This thesis first describes and evaluates zero initialization costs and the two existing designs. The microarchitectural analysis of prior designs inspires two better designs that exploit concurrency and non-temporal cache-bypassing store instructions to reduce the direct and indirect costs simultaneously. The best strategy is to adaptively choose between the two new designs based on CPU utilization. This approach improves over widely used hot-path zeroing by 3% on average and up to 15% on the newest Intel i7-2600 processor, without slowing down any of the benchmarks. These results indicate that zero initialization is a surprisingly important source of overhead in existing VMs and that our new software strategies are effective at reducing this overhead. These findings also invite other optimizations, including software elision of zeroing and microarchitectural support.

Similar Papers
  • Research Article
  • Citations16

Why nothing matters

  • Oct 18, 2011
  • ACM SIGPLAN Notices
  • Xi Yang +4
  • Research Article
  • Citations9

Unseen Costs: The Direct and Indirect Impact of U.S. Immigration Policies on Child and Adolescent Health and Well-Being.

  • Aug 13, 2020
  • Journal of Traumatic Stress
  • T Joseph Mattingly +6
  • Abstract

Cost of Care of Rare Hematologic Disorders in the United States: Call to Action for Policy Supporting Pharmacologic Innovation

  • Nov 05, 2021
  • Blood
  • Pedro Andreu Perez +5
  • Research Article
  • Citations20

Direct, indirect, and intangible costs after severe trauma up to occupational reintegration - an empirical analysis of 113 seriously injured patients.

  • Jun 17, 2013
  • GMS Psycho-Social-Medicine
  • Benjamin Anders +6
  • Research Article
  • Citations829

Estimating the current and future costs of Type 1 and Type 2 diabetes in the UK, including direct health costs and indirect societal and productivity costs

  • Jun 19, 2012
  • Diabetic Medicine
  • N Hex +4
  • Research Article
  • Citations30

Trends in resource utilization and cost of illness in patients with active epilepsy in Germany from 2003 to 2020.

  • Apr 03, 2022
  • Epilepsia
  • Laurent M Willems +14
  • Abstract
  • Citations1

264. Economic impact of revision operations for adjacent segment disease of the cervical spine

  • Aug 22, 2019
  • The Spine Journal
  • John C Bonano +5
  • PDF
  • Research Article
  • Citations26

Direct and indirect costs associated with ankylosing spondylitis and related disease activity scores in Turkey

  • Jan 01, 2015
  • Rheumatology International
  • Nurullah Akkoç +8
  • Research Article
  • Citations9

The Economic Impact of Pre-Dialysis Epoetin Alfa on Health Care and Work Loss Costs in Chronic Kidney Disease: An Employer's Perspective

  • Feb 01, 2008
  • Disease Management
  • Érick Moyneur +5
  • Abstract
  • Citations1

PND36 HEALTHCARE COSTS ASSOCIATED WITH ALZHEIMER’S DISEASE IN THE US AND EU-5: A SYSTEMATIC LITERATURE REVIEW

  • May 01, 2020
  • Value in Health
  • K Prabhune +3
  • Research Article
  • Citations1

Societal costs of decreased visual acuity: A Finnish cohort study with 15 years of registry data follow-up.

  • Jan 20, 2025
  • Acta ophthalmologica
  • Joonas Taipale +5
  • Research Article
  • Citations9

Direct and indirect costs of long bone fracture nonunions of the lower limb : the economic burden on the German healthcare system.

  • Apr 09, 2025
  • Bone & joint research
  • Tanja C Maisenbacher +9
  • Research Article

Soft bandage vs rigid immobilisation in pediatric distal radius torus fractures: A cost and patient burden analysis - A retrospective cohort study.

  • Jun 01, 2026
  • Injury
  • Salih Kaya +3
  • Research Article
  • Citations150

Cost of Illness and its Predictors for Parkinson??s Disease in Germany

  • Jan 01, 2005
  • PharmacoEconomics
  • Annika E Spottke +13
  • PDF
  • Research Article
  • Citations2

Pharmacoeconomic aspects of vaccination against Pneumococcal Infection in Russia

  • Sep 09, 2014
  • Journal Infectology
  • В Рудакова +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.