)]}'
{
  "commit": "7b2b1fee30df7e2165525cd03f7d1d01a3a56794",
  "tree": "71740fb9ea88465b54c52d998eadd012a6f8f4a6",
  "parents": [
    "fce1456a19f5c08b688c29f00ef90fdfa074c79b"
  ],
  "author": {
    "name": "Greg Banks",
    "email": "gnb@melbourne.sgi.com",
    "time": "Wed Oct 04 02:15:50 2006 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@g5.osdl.org",
    "time": "Wed Oct 04 07:55:16 2006 -0700"
  },
  "message": "[PATCH] knfsd: knfsd: cache ipmap per TCP socket\n\nSpeed up high call-rate workloads by caching the struct ip_map for the peer on\nthe connected struct svc_sock instead of looking it up in the ip_map cache\nhashtable on every call.  This helps workloads using AUTH_SYS authentication\nover TCP.\n\nTesting was on a 4 CPU 4 NIC Altix using 4 IRIX clients, each with 16\nsynthetic client threads simulating an rsync (i.e.  recursive directory\nlisting) workload reading from an i386 RH9 install image (161480 regular files\nin 10841 directories) on the server.  That tree is small enough to fill in the\nserver\u0027s RAM so no disk traffic was involved.  This setup gives a sustained\ncall rate in excess of 60000 calls/sec before being CPU-bound on the server.\n\nProfiling showed strcmp(), called from ip_map_match(), was taking 4.8% of each\nCPU, and ip_map_lookup() was taking 2.9%.  This patch drops both contribution\ninto the profile noise.\n\nNote that the above result overstates this value of this patch for most\nworkloads.  The synthetic clients are all using separate IP addresses, so\nthere are 64 entries in the ip_map cache hash.  Because the kernel measured\ncontained the bug fixed in commit\n\ncommit 1f1e030bf75774b6a283518e1534d598e14147d4\n\nand was running on 64bit little-endian machine, probably all of those 64\nentries were on a single chain, thus increasing the cost of ip_map_lookup().\n\nWith a modern kernel you would need more clients to see the same amount of\nperformance improvement.  This patch has helped to scale knfsd to handle a\ndeployment with 2000 NFS clients.\n\nSigned-off-by: Greg Banks \u003cgnb@melbourne.sgi.com\u003e\nSigned-off-by: Neil Brown \u003cneilb@suse.de\u003e\nSigned-off-by: Andrew Morton \u003cakpm@osdl.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@osdl.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b5612c958ccef64d5437ca3f89dd7dd425023d58",
      "old_mode": 33188,
      "old_path": "include/linux/sunrpc/cache.h",
      "new_id": "3699dff7db8fd3c129488745f9e851d7abbf56e1",
      "new_mode": 33188,
      "new_path": "include/linux/sunrpc/cache.h"
    },
    {
      "type": "modify",
      "old_id": "a6601650deeb4ef4131a319e4757bcadb313e0b1",
      "old_mode": 33188,
      "old_path": "include/linux/sunrpc/svcauth.h",
      "new_id": "de92619b0826066f7809c1ef264a029e0a7b84d2",
      "new_mode": 33188,
      "new_path": "include/linux/sunrpc/svcauth.h"
    },
    {
      "type": "modify",
      "old_id": "4c296152cbfa71ecdb52efb98e2586454a9b1e30",
      "old_mode": 33188,
      "old_path": "include/linux/sunrpc/svcsock.h",
      "new_id": "98b21ad370fdd529c7a35105642276876360ff82",
      "new_mode": 33188,
      "new_path": "include/linux/sunrpc/svcsock.h"
    },
    {
      "type": "modify",
      "old_id": "40d41a2831d75bb1dc4d710212e742bb62fa3033",
      "old_mode": 33188,
      "old_path": "net/sunrpc/svcauth_unix.c",
      "new_id": "e1bd933629fe59316f21fbcd8738b21e687c60e3",
      "new_mode": 33188,
      "new_path": "net/sunrpc/svcauth_unix.c"
    },
    {
      "type": "modify",
      "old_id": "1d512337ccd936676606629523e7145c4cbff378",
      "old_mode": 33188,
      "old_path": "net/sunrpc/svcsock.c",
      "new_id": "b39e7e2b648f67020a7706314cf142e81f017793",
      "new_mode": 33188,
      "new_path": "net/sunrpc/svcsock.c"
    }
  ]
}
