Skip to content

100% cpu on linux #13

Open
Open
@stigtsp

Description

@stigtsp

Hi
After starting esp-lisp CPU spikes to 100% on one core while idling, repl comes up.

$ ps axu | grep esp-lisp
user      24098 98.7  0.0   6164   832 pts/6    R+   00:27   1:54 ../esp-lisp
lisp> [% 11:50 load: 0.00 ]

Here is a snippet of strace esp-lisp :

_newselect(1, [0], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout)
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=5, tv_nsec=127416376}) = 0
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=5, tv_nsec=127424967}) = 0
ioctl(0, TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
_newselect(1, [0], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout)
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=5, tv_nsec=127463810}) = 0
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=5, tv_nsec=127471381}) = 0
ioctl(0, TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
_newselect(1, [0], NULL, NULL, {tv_sec=0, tv_usec=0}) = 0 (Timeout)
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=5, tv_nsec=127510697}) = 0
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {tv_sec=5, tv_nsec=127517576}) = 0
ioctl(0, TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost -isig -icanon -echo ...}) = 0

os: linux-4.18.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions