[Oct 09] Stock Android 7.1.2 (20180921) - RockPro64 | [Sept 25] KDE Neon (20180917) - Pinebook / Slackware Aarch64 Miniroot (20180901) - ROCK64 | [Aug 6] Debian Stretch Minimal 64bit (0.7.8) / Ubuntu 18.04 Bionic LXDE Desktop Image (0.7.8) / Ubuntu 18.04 Bionic minimal 64bit / 32bit Image (0.7.8) / Ubuntu 18.04 Bionic Containers Image (0.7.8) / Stretch OpenMediaVault OS Image armhf / Stretch OpenMediaVault OS Image arm64 ( 0.7.8) - ROCK64

Project Inspiration | Get Started | IRC Logs | Forum Rules/Policy


Arch Killing long running node/npm processes before finishing
#1
Question 
hello all,

when i run certian longer processes in node.js/npm, like an update ($ npm update -g) or to search for an npm package ($ npm search elm), it starts the process on my Pine64 A64+ w/ 2 GB board, but then half- or even three-quarters of the way through, it just kills the process before it completes; particularly, i noticed, when it's waiting for info to come back across the 'net through the ethernet port, with —

Killed

then it just gives me the command prompt again, process never completes. this happens no matter how many times i re-try it.

is there anyway to change a setting, somewhere, that will extend the amount of time before these processes are killed? any help would be much appreciated, please. thank you and advance. 

best,

—  faddah
     portland, oregon, u.s.a.
Reply
#2
Can you please provide the output of 'uname -a' and 'cat /proc/meminfo'
Reply
#3
(04-28-2016, 10:59 AM)@tkaiser Wrote: Can you please provide the output of 'uname -a' and 'cat /proc/meminfo'

@tkaiser —

sure! thank you for the help. 

Code:
$ uname -a
Linux alarm 3.10.65-2-pine64-longsleep #39 SMP PREEMPT Fri Mar 4 21:55:14 CET 2016 aarch64 GNU/Linux

$ cat /proc/meminfo
MemTotal:                    1002164 KB
MemFree:                      568180 KB
Buffers:                       86380 KB
Cached:                        95496 KB
SwapCached:                        0 KB
Active:                       258452 KB
Inactive:                      89028 KB
Active(anon):                 155952 KB
Inactive(anon):                 2104 KB
Active(file):                  92500 KB
Inactive(file):                86924 KB
Unevictable:                       0 KB
Mlocked:                           0 KB
SwapTotal:                         0 KB
SwapFree:                          0 KB
Dirty:                             0 KB
Writeback:                         0 KB
AnonPages:                    155648 KB
Mapped:                         7692 KB
Shmem:                          2428 KB
Slab:                          58608 KB
SReclaimable:                  43192 KB
SUnreclaim:                    15416 KB
KernelStack:                    2576 KB
PageTables:                     2692 KB
NFS_Unstable:                      0 KB
Bounce:                            0 KB
WritebackTmp:                      0 KB
CommitLimit:                  501080 KB
Commit_AS:                    746612 KB
Vmalloctotal:              251658176 KB
Vmallocused:                   23944 KB
Vmallocchunk:              251625116 KB
HugePages_Total:                   0 KB
HugePages_Free:                    0 KB
HugePages_Rsvd:                    0 KB
HugePages_Surp:                    0 KB
Hugepagesize:                   2048 KB


there you go. please let me know and thank you for the help.

best,

—  faddah
     portland, oregon, u.s.a.
Reply
#4
Thx for the answer. The OS image you're using is obviously only able to recognize 1 GB RAM (know issue, fixed by longsleep ages ago) and also the kernel is rather outdated. By simply executing the three lines below you get 1 GB more useable DRAM, a fixed MAC address without any hassles and a bunch of other fixes for free.

Unfortunately the Pine64 folks do a really really bad job providing necessary informations (maybe for a reason? Marketing matters) and all you need to do is to update both u-boot and kernel.

Please read through these instructions:

- http://forum.pine64.org/showthread.php?tid=737
- http://forum.pine64.org/showthread.php?tid=293

TL;DR: To update any of the available OS images all that's needed is just the following executed as root followed by a reboot:

Code:
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_kernel.sh)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_fix_whatever.sh)

It's a shame that such essential information isn't provided at the download location where every new user searches for software.

Regarding your real issue I would suspect reading through 'man nohup' should be able to solve the issue? Smile
Reply
#5
(04-28-2016, 10:14 AM)faddah Wrote:
hello all,

when i run certian longer processes in node.js/npm, like an update ($ npm update -g) or to search for an npm package ($ npm search elm), it starts the process on my Pine64 A64+ w/ 2 GB board, but then half- or even three-quarters of the way through, it just kills the process before it completes; particularly, i noticed, when it's waiting for info to come back across the 'net through the ethernet port, with —

Killed

then it just gives me the command prompt again, process never completes. this happens no matter how many times i re-try it.

is there anyway to change a setting, somewhere, that will extend the amount of time before these processes are killed? any help would be much appreciated, please. thank you and advance. 

best,

—  faddah
     portland, oregon, u.s.a.

Linux doesn't normally kill processes that run long. Try "dmesg | tail" after the process is killed to see if something like oom is killing it.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Arch Linux mainline XFCE pineadmin 7 2,888 02-19-2018, 08:54 AM
Last Post: martinayotte
  Arch Linux image (BSP Kernel) longsleep 28 15,168 05-06-2016, 06:33 PM
Last Post: tllim
  Archlinux up and Running scnd 4 1,013 04-30-2016, 06:42 PM
Last Post: Leoncito81
  what/where is the package manager on Arch Linux? spruce1 8 1,536 04-23-2016, 01:33 PM
Last Post: cplr

Forum Jump:


Users browsing this thread: 1 Guest(s)