Univention Bugzilla – Bug 29113
Hardwareanforderungen der Applikationen im App Center
Last modified: 2013-02-07 11:32:54 CET
Es wäre gut, wenn der App Hersteller Hardwareanforderungen in der ini-Datei definieren kann. Dann könnte direkt eine Warnung angezeigt werden, wenn die Installation oder Konfiguration zu scheitern droht.
Welche Komponenten würden sinnvollerweise hierunter fallen? * MinimumRAM=2GB * MinimumFreeDiskSpace=20GB * MinimumCPU=2x2000MHz Vielleicht auch Parameter des Netzwerks?
Das brauchen wird zeitnah, da beispielsweise OX auf einem 512 MB System ohne Swap nicht durch installiert. Zumindest RAM, ich glaube die anderen Parameter sind derzeit nicht so wichtig. Administrator@ucs:~$ dmesg | grep "Out of memory" [ 3769.839427] Out of memory: Kill process 19287 (amavisd-new) score 137 or sacrifice child [ 3772.092708] Out of memory: Kill process 19287 (amavisd-new) score 137 or sacrifice child [ 4150.813857] Out of memory: Kill process 23111 (java) score 186 or sacrifice child Administrator@ucs:~$ 21868 ? S 0:00 \_ /bin/bash /var/lib/dpkg/info/univention-ox-framework.postinst configure 22170 ? S 0:00 \_ /bin/bash /usr/lib/univention-install/67univention-ox-framework.inst 22192 ? S 0:00 \_ /bin/bash /usr/sbin/ox-server-install 31434 ? S 0:00 \_ sleep 5
Fixed in 2.0.91-1.53.201302051908 and 2.0.99-1.54.201302051913 Changelog updated, YAML updated New option in ini-File: MinRAM=1024 # MB Memory is checked against currently available memory (psutil). Please clone this bug when more hardware checks are required.
(In reply to comment #3) > Memory is checked against currently available memory (psutil). Please clone > this bug when more hardware checks are required. I'm afraid that is not enough. We should also use the cached memory because the memory will be used for file caching. I don't think we should check the available swap as well because the apps often need the physical memory. In this example 165 MB is the value we should use: root@master501:~# free -m total used free shared buffers cached Mem: 496 427 69 0 12 83 -/+ buffers/cache: 331 165 Swap: 993 124 869 root@master501:~#
Buffer und Cache wird zum freien Speicher hinzugerechnet. Die Variable wurde umbenannt in MinPhysicalRAM, um Erweiterungen zu ermöglichen, in denen Swap mit eingerechnet wird. univention-management-console-module-appcenter 2.0.91-1.60.201302061227
OK, es funktioniert. Bzgl. dem kompletten Speicher gibt es einen weiteren Bug: Bug #30310.
http://errata.univention.de/3.1-errata33.html