Actions
Issue #2056
closedMake Replicant 10 build with 8G of RAM
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
06/16/2020
Due date:
% Done:
0%
Estimated time:
Resolution:
Device:
Unknown
Grant:
Type of work:
Updated by Denis 'GNUtoo' Carikli almost 5 years ago
I manage to compile it without swapping with 12G with the following:
$ sudo pacman -S systemd-swap $ cat /etc/systemd/swap.conf ################################################################################ # Defaults are optimized for general usage ################################################################################ ################################################################################ # You can override any settings by files in: # /etc/systemd/swap.conf.d/*.conf ################################################################################ ################################################################################ # Zswap # # Kernel >= 3.11 # Zswap create compress cache between swap and memory for reduce IO # https://www.kernel.org/doc/Documentation/vm/zswap.txt zswap_enabled=1 zswap_compressor=lz4 # lzo lz4 zswap_max_pool_percent=50 # 1-99 zswap_zpool=zbud # zbud z3fold ################################################################################ # ZRam # # Kernel >= 3.15 # Zram compression streams count for additional information see: # https://www.kernel.org/doc/Documentation/blockdev/zram.txt zram_enabled=0 zram_size=$(($RAM_SIZE/4)) # This is 1/4 of ram size by default. zram_streams=$NCPU zram_alg=lz4 # lzo lz4 deflate lz4hc 842 - for Linux 4.8.4 zram_prio=32767 # 1 - 32767 ################################################################################ # Swap File Chunked # Allocate swap files dynamically # For btrfs fallback to swapfile + loop will be used # ex. Min swap size 512M, Max 8*512M swapfc_enabled=0 swapfc_force_use_loop=0 # Force usage of swapfile + loop swapfc_frequency=1s # How often check free swap space swapfc_chunk_size=512M # Allocate size of swap chunk swapfc_max_count=8 # 0 - unlimited, note: 32 is a kernel maximum swapfc_free_swap_perc=15 # Add new chunk if free < 15% # Remove chunk if free > 15+40% & chunk count > 2 swapfc_path=/var/lib/systemd-swap/swapfc/ # Only for swapfile + loop swapfc_nocow=1 # Disable CoW on swapfile swapfc_directio=1 # Use directio for loop dev swapfc_force_preallocated=0 # Will preallocate created files ################################################################################ # Swap devices # Find and auto swapon all available swap devices swapd_auto_swapon=1 swapd_prio=1024
Updated by dl lud almost 5 years ago
- Status changed from New to Closed
It compiles in 8G of RAM with the following environment variable:
export _JAVA_OPTIONS="-Xmx4g"
Documented with full explanation at: Porting Replicant to Android 10 - Java heap space
Actions