<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naoya</author_name>
  <author_url>https://blog.hatena.ne.jp/naoya/</author_url>
  <blog_title>naoyaのはてなダイアリー</blog_title>
  <blog_url>https://naoya-2.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>Linuxのcloseは暗にfsyncするから、ここであげられている 100000回繰り返し open 8K write close というパターンだとfsyncコストが見えちゃうので良くないんじゃないかな とのことで、そうなのか! と思ったので例によって深追いしてみました。まず fsync(2) の実装は fs/sync.c にあります。 asmlinkage long sys_fsync(unsigned int fd) { return __do_fsync(fd, 0); } static long __do_fsync(unsigned int fd, int datasync) {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaoya-2.hatenadiary.org%2Fentry%2F20070522%2F1179814864&quot; title=&quot; Linux の close は fsync 相当を調べる - naoyaのはてなダイアリー&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-05-22 15:21:04</published>
  <title> Linux の close は fsync 相当を調べる</title>
  <type>rich</type>
  <url>https://naoya-2.hatenadiary.org/entry/20070522/1179814864</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
