Messages in this thread | | | From | 孙世龙 sunshilong <> | Date | Fri, 26 Jun 2020 20:40:47 +0800 | Subject | Are there some potential problems that I should be aware of if I allocate the memory which doesn't have any relation to peripheral hardwares(i.e. DMA,PCI,serial port and etc) by vmalloc() instead of kmalloc()? |
| |
Hi, list
Besides kmalloc() is more efficient, are there some potential problems that I should be aware of if I allocate the memory which doesn't have any relation to peripheral hardwares(i.e. DMA,PCI,serial port and etc) by vmalloc() instead of kmalloc() to avoid the page allocation failure caused by kmalloc() while there are too many memory fragments?
Thank you for your attention to this matter. Best Regards.
| |