clear all memory 'kill all' not killing all sum's memory

Bug #1635356 reported by themusicgod1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maxima (Ubuntu)
New
Undecided
Unassigned

Bug Description

f(x,k):=sum( ((-1^(n+1))*(x^(2*n-1))/(2*n-1)),n,1,k);
f(1,50000),bfloat;
f(1,50001),bfloat;

though the same can be seen with f(x,k):=sum(n,n,1,k) (though to get the memory up you need a higher n for f(1,n));

both attempting "kill(all); reset();" and/or 'kill all' from xmaxima->clear memory->kill all seems to have no effect on the process(exe)'s actual memory use

~10.699g VIRT
~5.639g RES

("File->restart" does in fact start a new process, without this memory use)...but it seems strange that an option to clear memory is provided, but one that doesn't actually clear this use.

Ubuntu: 16.10
xmaxima: 5.37.2-8
maxima: 5.37.2-8

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: xmaxima 5.37.2-8
ProcVersionSignature: Ubuntu 4.8.0-22.24-generic 4.8.0
Uname: Linux 4.8.0-22-generic x86_64
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu Oct 20 12:41:53 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-07-09 (833 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140708)
SourcePackage: maxima
UpgradeStatus: Upgraded to yakkety on 2016-10-16 (4 days ago)

Revision history for this message
themusicgod1 (themusicgod1) wrote :
tags: added: zesty
Revision history for this message
Robert Dodier (robert-dodier) wrote :

`kill` removes values and properties. `reset` assigns the initial value of a symbol to the symbol. In both cases, these functions aren't specifically designed to free up memory, so I think that one can't expect them to. So the observed behavior is, I think, not a bug.

There is a new function `garbage_collect` which will be in the next version (5.43 at this point) to run the Lisp implementation's garbage collector -- that should free up memory if possible.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.