summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorXiang Chen <chenxiang66@hisilicon.com>2019-08-05 21:48:05 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-08-07 22:13:15 -0400
commit599aefc81effaaf78c02d44461f7157f22ee3b1d (patch)
treeae1b15480219247cdb3b0941c285d44dd279e771 /tools/perf/scripts/python/export-to-sqlite.py
parentd380f55503ed28461422546900baedc3b512b4b7 (diff)
downloadlinux-599aefc81effaaf78c02d44461f7157f22ee3b1d.tar.gz
linux-599aefc81effaaf78c02d44461f7157f22ee3b1d.zip
scsi: hisi_sas: Make slot buf minimum allocation of PAGE_SIZE
For a system with PAGE_SIZE of 16K or 64K, the size every time we want to alloc may be small like 4K, but for function dmam_alloc_coherent(), the least size it allocates is PAGE_SIZE, so it will waste much memory for the situation. To solve the issue, limit the minimum allocation size of slot buf to PAGE_SIZE. Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions