[Magisk] milojoseph:
### FeraLab ###

[05:23:57] FeraDroid Engine v0.20-b2
[05:23:57] Firing up..
[05:23:57] Device: samsung SM-N910T3
[05:23:57] Architecture: armv7l
[05:23:57] RAM: 2777 MB
[05:23:57] Kernel version: 3.10.99-N4-AELKernel-5.1.1-MultiVariant-Ed-v9.1
[05:23:57] ROM version: TEKXodus Hybrid N4 URv7 N5R9
[05:23:57] Android version: 5.1.1
[05:23:57] SDK: 22
[05:23:57] /system free space: 1.4G
[05:23:57] First boot after deploy
[05:23:57] Remounting /data and /system - RW
[05:23:57] Set SElinux permissive..
[05:23:57] Correcting permissions..
[05:24:40] Running 001 gear..
[05:24:40] 001 - ***Cleaning gear***
Remounting /data and /system - RW
Cleaning trash..
[05:24:41] 001 - ***Cleaning gear*** - OK
[05:24:42] Running 002 gear..
[05:24:42] 002 - ***Ad-block gear***
Ad-blocker detected. Skipping..
[05:24:42] Running 003 gear..
[05:24:42] 003 - ***RAM gear***
Current RAM values:
Total: 2777 MB
Free: 1504 MB
Real free: 246 MB
Cached: 1258 MB
SWAP/ZRAM total: 1023 MB
SWAP/ZRAM used: 0 MB

Freeing RAM...
Paging check..
SWAP detected. Size is 1023 MB
Configuring kernel & SWAP frienship..
KSM detected
KSM + swappiness is a bad. Disabling KSM..
Paging check completed

RAM values now:
Total: 2777 MB
Free: 1311 MB
Real free: 807 MB
Cached: 504 MB
SWAP/ZRAM total: 1023 MB
SWAP/ZRAM used: 0 MB
[05:24:54] 003 - ***RAM gear*** - OK
[05:24:54] Running 004 gear..
[05:24:54] 004 - ***Memory gear***
Device has 2777 MB of RAM and 1023 MB of SWAP/ZRAM
Calculated readahead parameter is 13885 KB
Trying to mount extSdCard partition if it exists..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Remounting EXT4 partitions..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new I/O parameters..
Applying new rnd parameters..
Applying new rnd parameters..
Applying new rnd parameters..
Checking. Current parameter is 13884 KB
[05:24:57] 004 - ***Memory gear*** - OK
[05:24:59] Running 005 gear..
[05:24:59] 005 - ***Kernel gear***
Writing optimized kernel parameters to sysfs..
Writing optimized kernel parameters to sysctl..
Executing optimized kernel parameters via sysctl..
Dynamic fsync detected. Activating..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Turning debugging OFF..
Tuning kernel scheduling..
Tuning Android..
[05:25:02] 005 - ***Kernel gear*** - OK
[05:25:02] Running 006 gear..
[05:25:02] 006 - ***GPU gear***
Remounting /system - RW
Tuning Android animations..
HID-magic tune-up
Tuning Android graphics..
GPU composition..
[05:25:03] 006 - ***GPU gear*** - OK
[05:25:03] Running 007 gear..
[05:25:03] 007 - ***Battery gear***
Fast charge support detected. Activating..
LCD power reduce detected. Activating..
Tuning Android power-saving..
[05:25:03] 007 - ***Battery gear*** - OK
[05:25:03] Running 008 gear..
[05:25:03] 008 - ***Network gear***
Writing optimized network parameters to sysctl
Executing optimized network parameters via sysctl
Set larger net-buffer sizes..
Tuning DNS..
Data compression enabled.
Tuning Android networking settings..
[05:25:04] 008 - ***Network gear*** - OK
[05:25:04] Running 009 gear..
[05:25:04] 009 - ***VM gear***
Tuning LMK..
LMK cost fine-tuning..
LMK debugging disabled
Tuning Android proc..
[05:25:04] 009 - ***VM gear*** - OK
[05:25:04] Running 010 gear..
[05:25:04] 010 - ***CPU gear***
CPU Interactive tuning..
Disabling RAM-dumps..
CGroup cpuctl tuned..
[05:25:04] 010 - ***CPU gear*** - OK
[05:25:04] Running 011 gear..
[05:25:04] 011 - ***GPS gear***
Patching GPS config...
[05:25:04] END start
Fix permissions and zipalign..
Google Play services fix
Checking all filesystems
FStrim init..
Trim /system
/system: 1447292928 bytes trimmed
Trim /data
/data: 18612822016 bytes trimmed
Trim /cache
/cache: 507428864 bytes trimmed
Optimizing DataBases..
[05:27:06] Applying kernel configuration..
vm.swappiness = 30
vm.page-cluster = 2
kernel.random.read_wakeup_threshold = 1536
kernel.random.write_wakeup_threshold = 256
vm.vfs_cache_pressure = 100
vm.min_free_kbytes = 8331
vm.extra_free_kbytes = 11108
vm.user_reserve_kbytes = 33324
vm.admin_reserve_kbytes = 8192
vm.compact_memory = 1
vm.drop_caches = 3
vm.oom_kill_allocating_task = 1
vm.dirty_ratio = 36
vm.dirty_background_ratio = 5
vm.dirty_writeback_centisecs = 0
vm.dirty_expire_centisecs = 0
vm.panic_on_oom = 0
vm.overcommit_memory = 1
vm.overcommit_ratio = 100
vm.laptop_mode = 2
vm.block_dump = 0
vm.oom_dump_tasks = 0
vm.min_free_order_shift = 4
fs.file-max = 180505
fs.leases-enable = 1
fs.lease-break-time = 5
fs.inotify.max_queued_events = 74979
fs.inotify.max_user_instances = 256
fs.inotify.max_user_watches = 16384
kernel.randomize_va_space = 2
kernel.panic = 0
kernel.panic_on_oops = 0
kernel.shmmni = 4096
kernel.shmall = 533184
kernel.shmmax = 268435456
kernel.msgmni = 16384
kernel.msgmax = 8192
kernel.msgmnb = 8192
Sleep, sync and free RAM
total used free shared buffers cached
Mem: 2777 2505 272 0 6 462
-/+ buffers/cache: 2035 742
Swap: 1023 8 1015
Remounting /system - RO
[05:27:19] END end
[05:25:04] First boot completed.

[05:27:19] FDE status - OK

1st boot up so laggy but read your o.p and let it rest... testing now and hope the code helps you fix any problem.... Thank you!