)]}'
{
  "commit": "e4a7352ad3c16f0b4b658218d9997e3570a70772",
  "tree": "3995d24cfb777a9f8d1496754c6d39cffef5c5a3",
  "parents": [
    "447eed8c489258552942afbba8ea042f99c838e6"
  ],
  "author": {
    "name": "Lucas De Marchi",
    "email": "lucas.de.marchi@gmail.com",
    "time": "Tue Oct 30 03:46:12 2012 -0200"
  },
  "committer": {
    "name": "Lucas De Marchi",
    "email": "lucas.de.marchi@gmail.com",
    "time": "Tue Oct 30 04:56:59 2012 -0200"
  },
  "message": "depmod: unref kmod_module once we don\u0027t need it anymore\n\nOnce we read all we need from a module, unref it so any resource taken\nby it (including the mmap to access the file in libkmod) will be\ndropped. This drastically reduces the number of open file descriptors\nand also the memory needed, with no performance penalties. Rather,\nthere\u0027s a small speedup of ~2.6%.\n\nRunning depmod in a laptop with 2973 modules and comparing the number of\nopen file descriptors for kmod-10, before and after the last patches to\ndepmod (caaf438cb681c5b5b5b3c32e5b6bd12e96993dd7 and HEAD) we have:\n\n\tBefore:\t\t2980 simultaneously open fds\n\tAfter:\t\t7    simultaneously open fds\n\tkmod-10:\t7    simultaneously open fds\n\nSo now we have the speedup of caching the file in kmod_module without\nthe drawback of increasing the number of open file descriptors.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "154a0b3dc020005be123811864152729e1d538ee",
      "old_mode": 33188,
      "old_path": "tools/depmod.c",
      "new_id": "670b90a86eed262fc928250fabd6b48cee419292",
      "new_mode": 33188,
      "new_path": "tools/depmod.c"
    }
  ]
}
