<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/glibc-lands-a-big-optimization-for-loongarch-cpus-2g3whuj3o" -->

---
title: Glibc Lands A Big Optimization For LoongArch CPUs
description: Glibc has merged a LoongArch-specific optimization that enables transparent hugepage (THP) aligned ELF load segments by default for LoongArch64. This reduces...
canonical: https://daily.dev/posts/glibc-lands-a-big-optimization-for-loongarch-cpus-2g3whuj3o
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Glibc Lands A Big Optimization For LoongArch CPUs | daily.dev
og:description: Glibc has merged a LoongArch-specific optimization that enables transparent hugepage (THP) aligned ELF load segments by default for LoongArch64. This reduces...
og:url: https://daily.dev/posts/glibc-lands-a-big-optimization-for-loongarch-cpus-2g3whuj3o
og:image: https://api.daily.dev/og/posts/2G3whUj3o.png
og:image:alt: Glibc Lands A Big Optimization For LoongArch CPUs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Glibc Lands A Big Optimization For LoongArch CPUs

**[Phoronix](https://daily.dev/sources/phoronix)** · 1 min read · 0 upvotes · 0 comments

## Summary

Glibc has merged a LoongArch-specific optimization that enables transparent hugepage (THP) aligned ELF load segments by default for LoongArch64. This reduces TLB pressure and improves instruction fetch efficiency for large binaries. Benchmarks on a Loongson 3A6000 show instruction TLB misses dropping by 72%, CPU cycles reduced by ~4.7%, and wall time savings of ~4.2% when compiling Rust's Cargo. Compiling the Linux kernel with LLD yielded ~12% wall time reduction. The patch series also introduces a new glibc.elf.thp tunable for THP-aware segment alignment.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoronix.com/news/Faster-LoongArch-glibc-THP>

## Similar posts on daily.dev

- [Glibc Now Enabling 2MB THP On AArch64 By Default For Better Performance](https://daily.dev/posts/glibc-now-enabling-2mb-thp-on-aarch64-by-default-for-better-performance-tnheepl8o) · Phoronix · 0 upvotes · 0 comments
- [AMD Proposes New LLVM iTHP Option For Squeezing More Performance](https://daily.dev/posts/amd-proposes-new-llvm-ithp-option-for-squeezing-more-performance-u5vsicyny) · Phoronix · 1 upvotes · 0 comments
- [Building a Host-Tuned GCC to Make GCC Compile Faster](https://daily.dev/posts/building-a-host-tuned-gcc-to-make-gcc-compile-faster-wt5gmdqdk) · Lobsters · 0 upvotes · 0 comments
- [LoongArch Improvements Land In Linux 7.1](https://daily.dev/posts/loongarch-improvements-land-in-linux-7-1-ctx8dpuys) · Phoronix · 0 upvotes · 0 comments
- [Huge binaries: I thunk therefore I am](https://daily.dev/posts/huge-binaries-i-thunk-therefore-i-am-cemlkri4d) · Farid Zakaria’s Blog · 0 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#linux](https://daily.dev/tags/linux)

[View this post on daily.dev](https://daily.dev/posts/glibc-lands-a-big-optimization-for-loongarch-cpus-2g3whuj3o)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Glibc Lands A Big Optimization For LoongArch CPUs","url":"https://daily.dev/posts/glibc-lands-a-big-optimization-for-loongarch-cpus-2g3whuj3o","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/glibc-lands-a-big-optimization-for-loongarch-cpus-2g3whuj3o"},"datePublished":"2026-04-17T12:57:11.029Z","dateModified":"2026-04-17T12:59:49.428Z","description":"Glibc has merged a LoongArch-specific optimization that enables transparent hugepage (THP) aligned ELF load segments by default for LoongArch64. This reduces...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5896b90a23ffb55c5702cd32dddf92ea?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5896b90a23ffb55c5702cd32dddf92ea?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Phoronix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Phoronix","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6a26ba379dd64932830aa0c9803dd7ee","url":"https://daily.dev/sources/phoronix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/glibc-lands-a-big-optimization-for-loongarch-cpus-2g3whuj3o","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,linux","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Phoronix","item":"https://daily.dev/sources/phoronix"},{"@type":"ListItem","position":3,"name":"Glibc Lands A Big Optimization For LoongArch CPUs"}]}
```

