Skip to content

100% cpu usage, polling the file tl is looking at #17

Closed
@nealmcb

Description

@nealmcb

Whenever I run tl, it uses 100% of a cpu. Running strace -fp shows three lines over and over, perhaps 100,000 times a second.

[pid 219465] lseek(7, 0, SEEK_CUR)      = 423
[pid 219465] read(7, "", 65536)         = 0
[pid 219465] poll([{fd=7, events=POLLIN}], 1, 100) = 1 ([{fd=7, revents=POLLIN}])
[pid 219465] lseek(7, 0, SEEK_CUR)      = 423
[pid 219465] read(7, "", 65536)         = 0
[pid 219465] poll([{fd=7, events=POLLIN}], 1, 100) = 1 ([{fd=7, revents=POLLIN}])

File descriptor 7 is the file I'm running tl on. 423 is the length of the file in bytes.

This is on Ubuntu 22.04.3. tl was installed via pipx, version 1.0.3

SInce efficiently watching a file for changes is a feature, something seems broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions