You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Excessive memory consumption when extracting non-consecutive indices with selected_ranges() #881
When the last command runs, I monitor memory usage of the R process via top. On my laptop with 16 GB RAM, usage goes past 80% (i.e., about 13 GB), at which point I terminate the R process otherwise my laptop starts using swap and it'll be frozen for a while. This amount of memory usage seems excessive given that the input data is only 500 MB in size.
Session information
R Under development (unstable) (2026-02-19 r89439)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.5 LTS
Matrix products: default
BLAS: /home/luna/Software/R/trunk/lib/libRblas.so
LAPACK: /home/luna/Software/R/trunk/lib/libRlapack.so; LAPACK version 3.12.1
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: Australia/Sydney
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RcppSpdlog_0.0.28 tiledb_0.33.0
loaded via a namespace (and not attached):
[1] zoo_1.8-15 bit_4.6.0 compiler_4.6.0
[4] Matrix_1.7-5 tools_4.6.0 RcppCCTZ_0.2.14
[7] spdl_0.0.5 Rcpp_1.1.1 nanoarrow_0.8.0
[10] bit64_4.6.0-1 nanotime_0.3.13 grid_4.6.0
[13] data.table_1.18.2.1 lattice_0.22-9
Activity
cgiachalis commentedon Apr 10, 2026
@LTLA What about reducing the buffer size?
or
LTLA commentedon Apr 10, 2026
Reduction of the buffer size doesn't help. The second suggestion is an okay workaround though it begs the question of why
[doesn't do this itself.