Android Process Scheduling

The following list presents the different types of processes in order of importance (the first process is most important and is killed last): Foreground process Visible process Service process Background process Empty process Note: Android ranks a process at the highest level it can, based upon the importance of the components currently active in the … Read more

Memory usage discrepancy: cgroup memory.usage_in_bytes vs. RSS inside docker container

I don’t know if you already find your answer or not but let me give you some information that may help. cAdvisor extract many memory-related metrics. We will focus on: container_memory_usage_bytes = value in /sys/fs/cgroup/memory/memory.usage_in_bytes file. (Usage of the memory) container_memory_working_set_bytes = container_memory_usage_bytes – total_inactive_file (from /sys/fs/cgroup/memory/memory.stat), this is calculated in cAdvisor and is <= … Read more

Limit memory on a Docker container doesn’t work

free won’t show it as this is enforced via cgroups. Instead on the host (outside the container) you can check using /sysfs and the cgroup memory: vagrant@precise64:~$ docker run -m=524288 -d -t busybox sleep 3600 f03a017b174f vagrant@precise64:~$ cat /sys/fs/cgroup/memory/lxc/f03a017b174ff1022e0f46bc1b307658c2d96ffef1dd97e7c1929a4ca61ab80f//memory.limit_in_bytes 524288 To see it run out of memory, you can run something that will use more … Read more

Difference between KVM and LXC

Text from https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/7-Beta/html/Resource_Management_and_Linux_Containers_Guide/sec-Linux_Containers_Compared_to_KVM_Virtualization.html Copyright © 2014 Red Hat, Inc.: Linux Containers Compared to KVM Virtualization The main difference between the KVM virtualization and Linux Containers is that virtual machines require a separate kernel instance to run on, while containers can be deployed from the host operating system. This significantly reduces the complexity of container creation … Read more

difference between cgroups and namespaces

The proper links for those two notions have been fixed in PR 14307: Under the hood, Docker is built on the following components: The cgroups and namespaces capabilities of the Linux kernel With: cgroup: Control Groups provide a mechanism for aggregating/partitioning sets of tasks, and all their future children, into hierarchical groups with specialized behaviour. … Read more

Elasticsearch: Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Vivek’s answer sysctl -w vm.max_map_count=262144 is correct, however, the setting will only last for the duration of the session. If the host reboots, the setting will be reset to the original value. If you want to set this permanently, you need to edit /etc/sysctl.conf and set vm.max_map_count to 262144. When the host reboots, you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)