Skip to content

Ark: Investigate high memory usage (400mb, 8x RStudio's rsession) #5050

Closed
@jmcphers

Description

System details:

Positron and OS details:

Positron Version: 2024.11.0 (Universal) build 53
Code - OSS Version: 1.93.0
Commit: af3c8088ea323bf347d5bb3ba90bd7c4f51d1b47
Date: 2024-10-16T02:46:52.870Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.6.0

Interpreter details:

Any R version.

Describe the issue:

The ark process uses a lot of memory.

Steps to reproduce the issue:

Just start Positron with R enabled, then use the operating system's Activity Monitor to check memory usage for the ark process running under Positron. On a cold boot, with no R objects in memory, ark currently uses almost 400mb:

Image

Ark's equivalent in RStudio is rsession. In a comparable environment, it's only 50mb.

Image

Because we start one ark process per R session and it's easy to start several sessions, this can cause Positron to use a lot of memory quickly. We should investigate whether this usage is unavoidable.

Expected or desired behavior:

ark should use less memory, or we should understand why it has to use so much.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions