Large-but-correctly-aligned-and-optimized code is faster than less-bytes-per-instruction/opcode-packed code

Posted on

Is large-but-correctly-aligned-and-optimized code faster than less-bytes-per-instruction/opcode-packed code? Alex Ionescu mentioned in ros-dev mailing list: I’m not sure why you would want kernel code to be “smaller” instead of “faster” though — on modern processors for cases like interrupts and such, large-but-correctly-aligned-and-optimized code is faster than less-bytes-per-instruction/opcode-packed code. ie: mov eax, [foo] add eax, 1 mov
Read more

mmap a large range of memory which is larger than the total size of physical memory and swap

Posted on

How to make mmap() a large range of memory which is larger than the total size of physical memory and swap successfully? Short answer: Adding the MAP_NORESERVE flag to mmap() to make it not reserve any swap space for the mapping. For example: rr_addr = mmap((void*)i, len, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE|MAP_NORESERVE, -1, 0); More details in: http://stackoverflow.com/questions/4803152/mmap-fails-when-length-is-larger-than-4gb

How to install the MATE fork of Gnome 2 on Fedora 17?

Posted on

I miss Gnome 2. How to install the MATE fork of Gnome 2 on Fedora 17? MATE is already included into Fedora 17’s repository and is an official feature of Fedora 18. To install MATE on Fedora 17 # yum install @mate-desktop To install softwares usually needed: # yum install mate-media mate-screensaver mate-system-monitor mate-power-manager mate-utils
Read more

mmap a large range of memory which is larger than the total size of physical memory and swap

Posted on

How to make mmap() a large range of memory which is larger than the total size of physical memory and swap successfully? Short answer: Adding the MAP_NORESERVE flag to mmap() to make it not reserve any swap space for the mapping. For example: rr_addr = mmap((void*)i, len, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE|MAP_NORESERVE, -1, 0); More details in: http://stackoverflow.com/questions/4803152/mmap-fails-when-length-is-larger-than-4gb

No battery status icon on the top panel in Gnome Shell

Posted on

  The battery icon in Gnome 3 Gnome-shell is missing. How can I fix it?   The system-monitor extension ( https://extensions.gnome.org/extension/120/system-monitor/ ) has a option to enable/disable the battery icon. This extension also shows the CPU/memory/network status which I miss as in Gnome 2. Great extension! The upower service may fail to start if an iPhone is
Read more

Managing LVM

Posted on

Any tutorials or tips on how to manage LVM? LVM provides a flexible and easy way to management storage disks on Linux. It also provides a set of tools for management. Here are some tutorials and references for managing LVM: LVM man pages: https://www.systutorials.com/docs/linux/man/8-lvm/#lbAL Manage Disk Volume in Linux: http://www.hongkedavid.com/blog/disk_volume.html LVM with Xen: https://www.systutorials.com/b/linux/tag/lvm/ Remove missing phyiscal volumes
Read more