[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell |
Date: |
Thu, 2 May 2024 12:47:37 -0400 (EDT) |
Follow-up Comment #16, bug #65669 (group octave):
checking with the same test as for doubles (i forgot cells concatenate
similarly) to see if it's num2cell or cells in general:
whos
memory
Octave is running on x86_64-pc-linux-gnu
System RAM: 10138252 kiB, swap: 945368 kiB
Octave RAM: 91136 kiB, virt: 442888 kiB
Free RAM: 6834940 kiB, swap: 567084 kiB
Available RAM: 9023272 kiB, total: 9590356 kiB
a = cell(10000,10000);
a(:) = 10;
whos
Variables visible from the current scope:
variables in scope: top scope
Attr Name Size Bytes Class
==== ==== ==== ===== =====
a 10000x10000 800000000 cell
Total is 100000000 elements using 800000000 bytes
memory
Octave is running on x86_64-pc-linux-gnu
System RAM: 10138252 kiB, swap: 945368 kiB
Octave RAM: 872448 kiB, virt: 1224136 kiB
Free RAM: 6041884 kiB, swap: 566060 kiB
Available RAM: 8222812 kiB, total: 8788872 kiB
a = cat(3,a,a);
a = cat(4,a,a);
whos
Variables visible from the current scope:
variables in scope: top scope
Attr Name Size Bytes Class
==== ==== ==== ===== =====
a 10000x10000x2x2 3200000000 cell
Total is 400000000 elements using 3200000000 bytes
memory
Octave is running on x86_64-pc-linux-gnu
System RAM: 10138252 kiB, swap: 945368 kiB
Octave RAM: 3217492 kiB, virt: 3567888 kiB
Free RAM: 3680788 kiB, swap: 566060 kiB
Available RAM: 5862028 kiB, total: 6428088 kiB
clear all
whos
memory
Octave is running on x86_64-pc-linux-gnu
System RAM: 10138252 kiB, swap: 945368 kiB
Octave RAM: 92488 kiB, virt: 442732 kiB
Free RAM: 6818672 kiB, swap: 566060 kiB
Available RAM: 8999912 kiB, total: 9565972 kiB
so, it seems you're probably on the right track with num2cell.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65669>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, (continued)
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Nicholas Jankowski, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Nicholas Jankowski, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Arun Giridhar, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Nicholas Jankowski, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Nicholas Jankowski, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Arun Giridhar, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Henry Shu, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Arun Giridhar, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Nicholas Jankowski, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Arun Giridhar, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Henry Shu, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Arun Giridhar, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Arun Giridhar, 2024/05/02
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Nicholas Jankowski, 2024/05/03
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Arun Giridhar, 2024/05/03
- [Octave-bug-tracker] [bug #65669] Memory Leak when Using Cell, Philip Nienhuis, 2024/05/03
- [Octave-bug-tracker] [bug #65669] Cell array construction is memory-intensive, Arun Giridhar, 2024/05/03
- [Octave-bug-tracker] [bug #65669] Cell array construction is memory-intensive, Henry Shu, 2024/05/04
- [Octave-bug-tracker] [bug #65669] Cell array construction is memory-intensive, Arun Giridhar, 2024/05/04
- [Octave-bug-tracker] [bug #65669] Cell array construction is memory-intensive, Henry Shu, 2024/05/04