<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kota-yata</author_name>
  <author_url>https://blog.hatena.ne.jp/kota-yata/</author_url>
  <blog_title>Mirrativ Tech Blog</blog_title>
  <blog_url>https://tech.mirrativ.stream/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>ストリーミング</anon>
    <anon>動画配信</anon>
  </categories>
  <description>インフラ・ストリーミングチーム インターンの八谷です。 本記事では、ガベージコレクション（GC）への負荷を低減することを目的として、Go言語でのメモリ確保時にOSから直接mmap領域を確保する手法と、make関数でランタイムから領域を確保する場合でのGC負荷などの比較を行います。結果としては、mmap領域を直接確保することでGCが走査するオブジェクト数を削減でき、それに伴ってアプリケーションの停止（Stop-The-World）時間を短縮できることがわかりました。 前提知識1: Goにおけるメモリ管理 Goのランタイムでは、起動時や必要に応じてOSから64MB単位の領域をあらかじめ確保し、それ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mirrativ.stream%2Fentry%2F2026%2F03%2F30%2F100000&quot; title=&quot;mmap直確保でGoのGC負荷を低減する - Mirrativ Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kota-yata/20260318/20260318161723.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-30 10:00:00</published>
  <title>mmap直確保でGoのGC負荷を低減する</title>
  <type>rich</type>
  <url>https://tech.mirrativ.stream/entry/2026/03/30/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
