This commit (apart from the cosmetic change to avoid using 'none') changes the use of ramfs into tmpfs. The reason for this is that ramfs usage can fill 100% of RAM and cannot be swapped out. While tmpfs can be swapped out and can be limited in size. The size chosen is arbitrary, but taking into account the ATV1 hardware 5% of 256MB means 12MB and 20% means 50MB, considering we have swap this is not too drastic. For any larger system, these sizes are fine as well as we do not expect /var or /dev/shm to be filled completely. So worst case is covered, but not expected.
Otherwise we get: warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
CONFIG_BLK_DEV_LOOP_MIN_COUNT: Number of loop devices to pre-create at init time Static number of loop devices to be unconditionally pre-created at init time. This default value can be overwritten on the kernel command line or with module-parameter loop.max_loop. The historic default is 8. If a late 2011 version of losetup(8) is used, it can be set to 0, since needed loop devices can be dynamically allocated with the /dev/loop-control interface.
Because syslogd is not properly started its remote syslog support when klogd dumps its kernel ring buffer content to it, most of the kernel boot output is missing on the remote syslog server. By adding a small delay between syslogd and klogd, we are sure the messages are properly send to the remote syslog by syslogd.
The in-kernel config (/proc/config.gz) is a useful way to understand how your existing kernel has been compiled, however it does use some memory to represent this information inside the kernel. However by making it optional you can still have this information if wanted, but as part of the system ramdisk (as a kernel module) rather than in memory all the time. For AppleTV this was not (yet) enabled, for other platforms we make it modular.
Not sure why Message Signaled interrupts was disabled, but the ATV1 hardware *does* support MSI and we specifically enable MSI for the nvidia driver. Here is a list of hardware that supports and uses MSI on AppleTV 1st Gen : ``` 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Exp ress Root Port (rev 03) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 Memory behind bridge: 20000000-21ffffff Prefetchable memory behind bridge: 0000000010000000-000000001fffffff Capabilities:  Subsystem: Intel Corporation Device 0000 Capabilities:  Power Management version 2 Capabilities:  MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [a0] Express Root Port (Slot+), MSI 00 Capabilities:  Virtual Channel Capabilities:  Root Complex Link Kernel driver in use: pcieport 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02) Subsystem: Realtek Semiconductor Co., Ltd. Device 0885 Flags: bus master, fast devsel, latency 0, IRQ 42 Memory at 22a00000 (64-bit, non-prefetchable) [size=16K] Capabilities:  Power Management version 2 Capabilities:  MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities:  Express Root Complex Integrated Endpoint, MSI 00 Capabilities:  Virtual Channel Capabilities:  Root Complex Link Kernel driver in use: snd_hda_intel 00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 00003000-00003fff Memory behind bridge: 22000000-228fffff Prefetchable memory behind bridge: 0000000022b00000-0000000022cfffff Capabilities:  Express Root Port (Slot+), MSI 00 Capabilities:  MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities:  Subsystem: Gammagraphx, Inc. (or missing ID) Device 0000 Capabilities: [a0] Power Management version 2 Capabilities:  Virtual Channel Capabilities:  Root Complex Link Kernel driver in use: pcieport 01:00.0 VGA compatible controller: NVIDIA Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1) (prog-if 00 [VGA controller]) Subsystem: Apple Inc. Device 0081 Flags: bus master, fast devsel, latency 0, IRQ 44 Memory at 21000000 (32-bit, non-prefetchable) [size=16M] Memory at 10000000 (64-bit, prefetchable) [size=256M] Memory at 20000000 (64-bit, non-prefetchable) [size=16M] Capabilities:  Power Management version 2 Capabilities:  MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities:  Express Endpoint, MSI 00 Capabilities:  Virtual Channel Capabilities:  Power Budgeting <?> Kernel driver in use: nvidia Kernel modules: nvidia 02:00.0 Multimedia controller: Broadcom Corporation BCM70015 Video Decoder [Crystal HD] Subsystem: Broadcom Corporation BCM70015 Video Decoder [Crystal HD] Flags: bus master, fast devsel, latency 0, IRQ 43 Memory at 22800000 (64-bit, non-prefetchable) [size=64K] Memory at 22000000 (64-bit, non-prefetchable) [size=8M] Capabilities:  Power Management version 3 Capabilities:  Vendor Specific Information: Len=6c <?> Capabilities:  MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [cc] Express Endpoint, MSI 00 Capabilities:  Advanced Error Reporting Capabilities: [13c] Virtual Channel Kernel driver in use: crystalhd Kernel modules: crystalhd ```
On Linux when a block device ends with a number (like my SD card device: **/dev/mmcblk0**) the first partition is called **/dev/mmcblk0p1** (with an added **p**). This snippet makes sure that the correct partition name is used in both cases.
Busybox free reports incorrectly the used and free memory on a system. Which makes it harder to understand and compare information from other sources. In the same effort we add some other useful procps-ng tools, like pgrep, pkill, pmap, slabtop, vmstat and watch.
The version of less in busybox is quite annoying when working on OpenELEC. It doesn't properly support searching in files or tailing (and interrupting) logfiles. It also doesn't properly handle non-ascii characters. This patch disables busybox less and instead adds the latest stable less release.
Apparently tvheadend by default uses the syslog service, and the `-s` option that we provide in the startup script in fact makes tvheadend send debug messages to syslog (which we obviously do not want by default as this causes for my single DVB card 1k/min to /var, which is 4MB/month). So this fix disables the `-s` option in the tvheadend startup script. closes #2053, closes #2055
…rver Since syslogd was started before the network was up, all syslog messages before the network was up were discarded and not send to the remoe syslog server. By moving the syslogd startup until after the network, the kernel boot messages are available on the central syslog.
smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. Signed-off-by: Stephan Raue <firstname.lastname@example.org>
…and perf anyway)