)]}'
{
  "commit": "595fec3cadab9167f64729b231efd090760b2059",
  "tree": "abb5eea72c4b70f02cdb28939fd28eb46e4ec828",
  "parents": [
    "e56695b638e18d2d6533652e34146d833d9fff7c"
  ],
  "author": {
    "name": "Chengchang Tang",
    "email": "tangchengchang@huawei.com",
    "time": "Wed Jun 17 19:28:32 2026 +0800"
  },
  "committer": {
    "name": "Junxian Huang",
    "email": "huangjunxian6@hisilicon.com",
    "time": "Wed Jun 17 19:33:30 2026 +0800"
  },
  "message": "libhns: Optimize memory allocation to reduce page faults\n\nWe observed page faults during post_send() in flame graph, which\nincreased the latency of post_send() and degraded performance.\n\nAdd MAP_POPULATE flag to mmap() calls in hns_roce_alloc_buf() to\npre-fault pages at allocation time, avoiding page faults during\ndata path operations. Replace calloc() with malloc()+memset() for\nwrid buffers in SRQ and QP allocation, as explicit memset after\nmalloc allows the kernel to handle page faults in bulk rather than\non first write access, improving performance for RDMA workloads.\n\nSigned-off-by: Chengchang Tang \u003ctangchengchang@huawei.com\u003e\nSigned-off-by: Junxian Huang \u003chuangjunxian6@hisilicon.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "471dd9ca5239ad1e1c483d57e000ea5099b7834e",
      "old_mode": 33188,
      "old_path": "providers/hns/hns_roce_u_buf.c",
      "new_id": "b0992c1a01c5dee3f6d1e28377dddd98d0ee33ec",
      "new_mode": 33188,
      "new_path": "providers/hns/hns_roce_u_buf.c"
    },
    {
      "type": "modify",
      "old_id": "7a861ba325c668db768c80e92bca73f7addb719a",
      "old_mode": 33188,
      "old_path": "providers/hns/hns_roce_u_verbs.c",
      "new_id": "0cf7dc033f3e93cf7934e0b1e0378bc89581dc74",
      "new_mode": 33188,
      "new_path": "providers/hns/hns_roce_u_verbs.c"
    }
  ]
}
