LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2018, 08:50 PM   #1
cad-guy
LQ Newbie
 
Registered: May 2012
Posts: 19

Rep: Reputation: Disabled
slow processing with Parrot Linux - increase size of swap?


Hello;
I've recently installed parrot-linux on an old 2011 computer. I notice that programs and some websites run slower then they did when Linux Mint was installed.
After recieving some wonderful help on another thread, I was able to shift unallocated space on the hard drive to the /home folder. But I think that the swap partition is still too small. So the question I would like to ask is: how could I change the lvresize or lvextend command in order to increase the size of the swap partition.

I thank you in advance for any suggestions.
Attached Thumbnails
Click image for larger version

Name:	linux-partition-resolved.png
Views:	38
Size:	57.8 KB
ID:	29332  
 
Old 12-28-2018, 09:02 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,774
Blog Entries: 27

Rep: Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631
More information is needed before your question can be answered productively.

What make/model of computer and what are its specs, particularly the CPU and RAM?
 
Old 12-29-2018, 02:33 PM   #3
cad-guy
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Computer Specs

Sorry for not including that.
The computer is a Lenovo B570 Core i3 2330M dual-core processor with 8Gb of ram on board
https://www.cnet.com/products/lenovo...gb-hdd-series/
It's running Parrot-linux (Debian) with Mate desktop environment.
Given that many people suggest that the swap be larger then the ram size, it's my thought that the swap partition size is the likely area to address.

As Syg00 suggested, it looks like I will need to increase the root partition and this may also contribute to the problem. That's all well and good. Lvextend should take care of this.
However using df -h /root shows that the root folder is only 57% used which contrasts with what the disk usage analyzer shows. I included a df -h for the whole system in hopes that this provides more clarity.

Thank you in advance for any thoughts.
Attached Thumbnails
Click image for larger version

Name:	Disk-space-use_12-2018.png
Views:	28
Size:	35.5 KB
ID:	29340   Click image for larger version

Name:	Disk-space_root.png
Views:	19
Size:	20.4 KB
ID:	29341   Click image for larger version

Name:	Disk-space_df.png
Views:	28
Size:	50.5 KB
ID:	29342  

Last edited by cad-guy; 12-29-2018 at 06:33 PM. Reason: more information to share
 
Old 12-29-2018, 09:00 PM   #4
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,126

Rep: Reputation: 634Reputation: 634Reputation: 634Reputation: 634Reputation: 634Reputation: 634
Quote:
Originally Posted by cad-guy View Post
However using df -h /root shows that the root folder is only 57% used which contrasts with what the disk usage analyzer shows.
There is a difference between the root file system (which starts at /) and the root home directory (which starts at /root). For df (which lists file systems, not trees) it shouldn't make any difference but for du (which summons disk usage) it does.
I'm not quite sure what your disk analyzer shows, but it looks like disk usage of the /root tree.

PS: df stands for disk space in fs
Code:
df - report file system disk space usage
and du for disk usage (by the arguments)
Code:
du - estimate file space usage
Summarize disk usage of each argument, recursively for directories.

Last edited by ehartman; 12-29-2018 at 09:02 PM.
 
Old 12-29-2018, 09:22 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,774
Blog Entries: 27

Rep: Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631Reputation: 4631
Quote:
Given that many people suggest that the swap be larger then the ram size, it's my thought that the swap partition size is the likely area to address.
That is an old suggestion dating to when RAM was measured in kilobytes and megabytes. These days, if I have 4GB RAM or more, I set my swap to 50% (or less) of RAM (I do not use hibernation).

I have a computer running Debian Stretch with 8 GB RAM and no swap (long story but I did not do the sofware load) and it runs just fine. The computer I'm typing on has 16GB RAM and 4.7 GB swap and barely touches the swap partition, even with two active VMs running.

Whatever the issue is, I think it likely that the size of your swap partition is not it.

Have you tried using top or htop to see what is using your CPU cycles?

Last edited by frankbell; 12-29-2018 at 09:25 PM.
 
Old 12-29-2018, 09:25 PM   #6
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 3,909

Rep: Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096
Quote:
Originally Posted by cad-guy View Post
However using df -h /root shows that the root folder is only 57% used which contrasts with what the disk usage analyzer shows. I included a df -h for the whole system in hopes that this provides more clarity.
The disk usage analyzer doesn't report how full the root filesystem is. It reports the disk usage in a directory named "root" (probably the superuser's home directory /root). About half a megabyte of storage is used there, which is practically nothing.

The 57% are correct. There is no need to expand anything on your computer.

The size of swap is unlikely to contribute to the performance of your computer. If swap space is too small, programs might be forcibly stopped by the operating system, or you may be unable to launch programs. A PC with 8GB of RAM that is used for web surfing, email and so on is unlikely to need much swap if any at all.
Which programs do you customarily use?

It's very hard to accurately measure your feeling that the system is sluggish. After changing the operating system, you use newer (or older?) versions of software that do things slightly differently, use slightly different resources, and bang the feeling is different. You can, however, look at memory usage. A convenient tool for that is the top program, which you can run continuously in a separate command line window. You can also run vmstat (which you may have to install first) to see if there is any swapping activity. More likely than not, though, you won't see anything of the sort.
 
Old 12-30-2018, 05:52 PM   #7
cad-guy
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
slow OS - causes

Thank you for the additional info. It's good to learn that the swap does not have to be so large. I also appreciate learning the difference btwn 'df' and 'du' which improves my skill.
Regarding the partition size, I did get an error while installing software (FreeCad I believe) stating that the root was full and to address this. But unfortunately I didn't screenshot that.

I found some info that might be useful while working on program installation.
sudo apt-get -f install --- gave me this response:
Setting up initramfs-tools (0.132) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.132) ...
update-initramfs: Generating /boot/initrd.img-4.18.0-parrot20-amd64

gzip: stdout: No space left on device <--------------
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.0-parrot20-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1


In terms of sluggishness, I do use 'top' regularly and the most high consuming program now tends to be firefox. Even opening gmail without choosing the basic (slow connection) option will render the computer unusable for 2-4 minutes. Thankfully with parrot, there is a graphic which shows that the problem is processor speed and not wifi speed.
"After changing the operating system, you use newer (or older?) versions of software that do things slightly differently"
The OS and all of the software has been installed this year. I got linux mint installed by a friend about 8 months ago but switched because I wanted the OS to be installed on a dedicated partition. So none of the software from the old or new system should be out of date. I did also install all software updates as well.
I have been trying to get VirtualBox working which, admittedly consumes a lot of resources, but that doesn't apply yet.

I thank you again in advance for any suggestions. If there is more info that would help with this trouble then I'm happy to provide it.
Attached Thumbnails
Click image for larger version

Name:	tmp-usage-gui.png
Views:	16
Size:	21.3 KB
ID:	29377  

Last edited by cad-guy; 01-02-2019 at 07:16 PM.
 
Old 12-30-2018, 06:36 PM   #8
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 3,909

Rep: Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096Reputation: 1096
Quote:
Originally Posted by cad-guy View Post
gzip: stdout: No space left on device <--------------
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.18.0-parrot20-amd64 with 1.
This is on /boot, which is indeed rather small on your computer and only has 34MB free space. initrd is easily that size.

/boot should not impact your performance though. As the name indicates, itís mainly used for booting.
 
Old 01-02-2019, 07:20 PM   #9
cad-guy
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
berndbausch
Thank you.
It's good to know that the error msg regarding the /boot is not causing the sluggishness. Do you know if this would cause problems with installing additional software? (I have not installed any new software assuming it would be problematic)
Can I use lvresize or lvextend to increase the size or should I re-allocate some space from /home via gparted first?
 
  


Reply

Tags
partition, swap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOw increase the swap disk size? hinetvenkat Linux - Server 1 07-25-2007 09:55 PM
Is there an easy way to increase SWAP size? Mow Slackware 5 07-25-2007 07:32 PM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 04:20 AM
How to increase swap size in LVM? Akhran Debian 1 04-04-2006 10:47 AM
ubuntu - increase swap size dna9 Linux - Distributions 11 01-24-2005 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration