linux-kernel

High kernel memory usage in Kubernetes Node

僤鯓⒐⒋嵵緔 提交于 2020-12-12 06:43:29
问题 I am pretty desperate searching for a solution to this. I am running a Kubernetes Cluster (v1.16.7) on AWS. Node specs are : It is an Amazon EC2 t3.medium instance with 4GB RAM and AMI: k8s-1.11-debian-stretch-amd64-hvm-ebs-2018-08-17 with kernel: 4.9.0-7-amd64 My main problem is that I see increased memory usage in the kernel, which leads to faster memory starvation issues in my node. More specifically: free -m : total used free shared buff/cache available Mem: 3895 3470 130 3 294 204 Swap:

Passing argument 4 of ‘proc_create’ from incompatible pointer type [closed]

喜你入骨 提交于 2020-12-10 16:31:27
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 months ago . Improve this question I'm trying to make a simple procfs module, but I get this error: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types] I tried many online examples and i got same error message. 回答1: You have to use proc_ops in newer

Is there a ARM processor support on-chip hardware random number generator?

梦想与她 提交于 2020-12-08 08:00:30
问题 Intel supports RDRAND (also known as Intel secure key) instruction for returning random numbers. And it's available in Ivy Bridge processors. I wonder, is there any ARM processor featuring instructions for on-chip hw random number generator functionally similar to RDRAND? And I have an additional question. In the Linux kernel (version 3.10), there are driver sources for hw random number generators in /linux/drivers/char/hw_random . (http://lxr.free-electrons.com/source/drivers/char/hw_random/

HugePages on Raspberry Pi 4

ⅰ亾dé卋堺 提交于 2020-12-06 15:51:41
问题 I need help about managing Hugepages on raspberry pi 4 running raspberry pi OS 64 bit. I did not find much reliable information online. First I recompiled the kernel source enabling Memory Management options --->Transparent Hugepage Support option. When I run the command: grep -i huge /proc/meminfo The output is: AnonHugePages: 319488 kB ShmemHugePages: 0 kB FileHugePages: 0 k and running the command: cat /sys/kernel/mm/transparent_hugepage/enabled the output is: [always] madvise never So I

HugePages on Raspberry Pi 4

孤人 提交于 2020-12-06 15:49:01
问题 I need help about managing Hugepages on raspberry pi 4 running raspberry pi OS 64 bit. I did not find much reliable information online. First I recompiled the kernel source enabling Memory Management options --->Transparent Hugepage Support option. When I run the command: grep -i huge /proc/meminfo The output is: AnonHugePages: 319488 kB ShmemHugePages: 0 kB FileHugePages: 0 k and running the command: cat /sys/kernel/mm/transparent_hugepage/enabled the output is: [always] madvise never So I

How does Linux kernel discover PCI devices?

怎甘沉沦 提交于 2020-12-04 11:12:54
问题 On the driver side, pci_register_driver() is called when a driver module is loaded, or at boot time if the module is built-in. (Whenever a device/driver is added, driver/device list is looped to find a match, I get that part.) But where/when are pci devices discovered and registered with the bus? I imagine this is arch specific, and would involve BIOS on x86, such as - BIOS routine probe PCI devices and then put the results in a list some where in RAM, before loading the kernel, and each list

How does Linux kernel discover PCI devices?

混江龙づ霸主 提交于 2020-12-04 11:07:32
问题 On the driver side, pci_register_driver() is called when a driver module is loaded, or at boot time if the module is built-in. (Whenever a device/driver is added, driver/device list is looped to find a match, I get that part.) But where/when are pci devices discovered and registered with the bus? I imagine this is arch specific, and would involve BIOS on x86, such as - BIOS routine probe PCI devices and then put the results in a list some where in RAM, before loading the kernel, and each list

How does Linux kernel discover PCI devices?

谁都会走 提交于 2020-12-04 11:07:01
问题 On the driver side, pci_register_driver() is called when a driver module is loaded, or at boot time if the module is built-in. (Whenever a device/driver is added, driver/device list is looped to find a match, I get that part.) But where/when are pci devices discovered and registered with the bus? I imagine this is arch specific, and would involve BIOS on x86, such as - BIOS routine probe PCI devices and then put the results in a list some where in RAM, before loading the kernel, and each list

How does Linux kernel discover PCI devices?

送分小仙女□ 提交于 2020-12-04 11:05:47
问题 On the driver side, pci_register_driver() is called when a driver module is loaded, or at boot time if the module is built-in. (Whenever a device/driver is added, driver/device list is looped to find a match, I get that part.) But where/when are pci devices discovered and registered with the bus? I imagine this is arch specific, and would involve BIOS on x86, such as - BIOS routine probe PCI devices and then put the results in a list some where in RAM, before loading the kernel, and each list

How does Linux kernel discover PCI devices?

…衆ロ難τιáo~ 提交于 2020-12-04 11:05:39
问题 On the driver side, pci_register_driver() is called when a driver module is loaded, or at boot time if the module is built-in. (Whenever a device/driver is added, driver/device list is looped to find a match, I get that part.) But where/when are pci devices discovered and registered with the bus? I imagine this is arch specific, and would involve BIOS on x86, such as - BIOS routine probe PCI devices and then put the results in a list some where in RAM, before loading the kernel, and each list