regarding memory issue

General support questions
User avatar
TrevorH
Site Admin
Posts: 33273
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: regarding memory issue

Post by TrevorH » 2024/05/15 16:24:12

Now repeat that command for the largest directory and keep doing that until you find the bottom level directory that uses all the space.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pjsr2
Posts: 617
Joined: 2014/03/27 20:11:07

Re: regarding memory issue

Post by pjsr2 » 2024/05/16 07:38:02

but i dont have idea how whats are inside these folder (polyspace)
Perhaps this helps:https://en.wikipedia.org/wiki/Polyspace or https://www.mathworks.com/products/polyspace-test.html

Whatever it is, I don't expect that Polyspace by it self needs 29 GB. My guess is that Polyspace has created a lot of data files somewhere under /usr/local/Polyspace. Continue drilling down the directory tree of /usr/local/Polyspace to find that. If it is user generated Polyspace data, move it to somewhere else and change the configuration such that Polyspace stores its data somewhere on the /home partition.
Alternatively, since it is installed in /usr/local it means it is not part of the CentOS distribution but a local addition. It should be fairly easy to move the complete Polyspace to some other partition.

deva_linux
Posts: 5
Joined: 2024/03/06 10:28:29

Re: regarding memory issue

Post by deva_linux » 2024/05/16 11:29:09

thankyou every one for your responses, i got the solution, there it one folder named poly space in that folder Matlab were installed . so i got the idea about memory distribution.

tunk
Posts: 1215
Joined: 2017/02/22 15:08:17

Re: regarding memory issue

Post by tunk » 2024/05/16 13:24:36

Don't know if it's common practice, but usually I install
third party software in /opt (which is a separate partition).
This may give you better control.

User avatar
jlehtone
Posts: 4551
Joined: 2007/12/11 08:17:33
Location: Finland

Re: regarding memory issue

Post by jlehtone » 2024/05/22 17:13:08

tunk wrote:
2024/05/16 13:24:36
Don't know if it's common practice, but usually I install
third party software in /opt (which is a separate partition).
This may give you better control.
Shades of gray.
Some RPM packages do put files under /usr/local. For example, NVidia's CUDA.
Some RPM packages do put files under /opt. For example, Red Hat's Software Collections.

The default is that /opt, /usr, and /var are all within the '/' filesystem, not on separate "partitions".
Only the '/boot' and '/home' are separate. The '/boot' is separate, because the boot procedure may require that.
The '/home' is separate because then it does not have to be touched if the OS is reinstalled or replaced.

The important thing is that files that are not from RPM-packages should not mingle with files from packages.


I did update my earlier example for moving the polyspace directory:

Code: Select all

# Stop use of Matlab
rsync -avHAX --stats /usr/local/Polyspace/ /home/var_Polyspace/
rm -fr /usr/local/Polyspace
echo "/home/var_Polyspace /usr/local/Polyspace none bind 0 0" >> /etc/fstab
mount /usr/local/Polyspace
restorecon -r /usr/local/Polyspace
# Start use of Matlab

Post Reply