Bug 29113 - Hardwareanforderungen der Applikationen im App Center
Hardwareanforderungen der Applikationen im App Center
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 3.0
Other Linux
: P5 enhancement (vote)
: UCS 3.1-0-errata
Assigned To: Dirk Wiesenthal
Stefan Gohmann
:
Depends on:
Blocks: 30291
  Show dependency treegraph
 
Reported: 2012-11-09 07:42 CET by Stefan Gohmann
Modified: 2013-02-07 11:32 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2012-11-09 07:42:15 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.
Comment 1 Dirk Wiesenthal univentionstaff 2012-11-09 09:46:08 CET
Welche Komponenten würden sinnvollerweise hierunter fallen?

 * MinimumRAM=2GB
 * MinimumFreeDiskSpace=20GB
 * MinimumCPU=2x2000MHz

Vielleicht auch Parameter des Netzwerks?
Comment 2 Stefan Gohmann univentionstaff 2013-01-29 16:13:04 CET
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
Comment 3 Dirk Wiesenthal univentionstaff 2013-02-05 19:37:17 CET
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.
Comment 4 Stefan Gohmann univentionstaff 2013-02-06 10:01:28 CET
(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:~#
Comment 5 Dirk Wiesenthal univentionstaff 2013-02-06 12:50:13 CET
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
Comment 6 Stefan Gohmann univentionstaff 2013-02-06 16:06:17 CET
OK, es funktioniert. Bzgl. dem kompletten Speicher gibt es einen weiteren Bug: Bug #30310.
Comment 7 Moritz Muehlenhoff univentionstaff 2013-02-07 11:32:54 CET
http://errata.univention.de/3.1-errata33.html