Changeset 15595 in niluje


Ignore:
Timestamp:
Dec 11, 2018, 11:44:40 PM (10 months ago)
Author:
NiLuJe
Message:

MRPI:

  • Raise the tmpfs floor to 56MB According to my tests, most of this is extremely overkill: even on the K2, resize_mrpi_tmpfs is basically a nop ;).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/KUAL/MRInstaller/extensions/MRInstaller/bin/mrinstaller.sh

    r15594 r15595  
    420420
    421421        # Check that we actually end up with enough free memory to be able to use it...
    422         if [ "${tmpfs_size}" -lt "$(( 48 * 1024 ))" ] ; then
    423                 # If we can spare less than 48MB, abort!
    424                 logmsg "E" "resize_mrpi_tmpfs" "" "not enough available memory (< 48MB) for mrpi tmpfs!"
     422        # NOTE: The most space-hungry package I have is the legacy variant of USBNet, which currently requires about 46MB.
     423        #       That said, we should be pretty safe: so far, I've always had *more* available RAM than the ceiling value,
     424        #       even on the K2, where the ceiling is at ~77MB, and I usually have around ~89MB of available memory to spare!
     425        if [ "${tmpfs_size}" -lt "$(( 56 * 1024 ))" ] ; then
     426                # If we can spare less than 56MB, abort!
     427                logmsg "E" "resize_mrpi_tmpfs" "" "not enough available memory (< 56MB) for mrpi tmpfs!"
    425428                return 1
    426429        fi
Note: See TracChangeset for help on using the changeset viewer.