All of lore.kernel.org
 help / color / mirror / Atom feed
* 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()?
@ 2020-06-26  8:30 孙世龙 sunshilong
  2020-06-26 14:13 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: 孙世龙 sunshilong @ 2020-06-26  8:30 UTC (permalink / raw)
  To: Kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 402 bytes --]

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 much memory fragment)?

Thank you for your attention to this matter.

[-- Attachment #1.2: Type: text/html, Size: 481 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 10+ messages in thread
* 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()?
@ 2020-06-26 12:40 孙世龙 sunshilong
  0 siblings, 0 replies; 10+ messages in thread
From: 孙世龙 sunshilong @ 2020-06-26 12:40 UTC (permalink / raw)
  To: linux-kernel

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-06-27  7:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-26  8:30 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()? 孙世龙 sunshilong
2020-06-26 14:13 ` Greg KH
2020-06-26 15:36   ` 孙世龙 sunshilong
2020-06-26 17:22     ` Valdis Klētnieks
2020-06-27  5:16       ` 孙世龙 sunshilong
2020-06-27  5:23         ` Greg KH
2020-06-27  6:00           ` 孙世龙 sunshilong
2020-06-27  7:05             ` Greg KH
2020-06-27  5:05     ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2020-06-26 12:40 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 " 孙世龙 sunshilong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.