Re: Performance of my computer

2023-10-31 Thread piorunz

On 31/10/2023 12:10, Michael Kjörling wrote:

Which is why I specifically asked OP to show the output of those while
doing something where OP felt that the computer was slow,_and_
reiterated that exact point in my response which you quoted from.


Dear Michael,

It was not my intention to offend you. Sorry for sarcasm.

I don't believe that CPU slowing down due to no activity will be felt by
a desktop user, because even moving a mouse will cause CPU frequency to
spike. And a busy computer (OP has stated that CPU has a constant use of
around 30%) will have frequencies high anyway.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Performance of my computer

2023-10-31 Thread Michael Kjörling
On 31 Oct 2023 00:08 +, from pior...@gmx.com (piorunz):
> CPU is idling and there is nothing to do, I don't know why you want to
> investigate normal CPU behaviour. This is absolutely normal. Going down
> all the way to 0.80 GHz is actually great, that is definitely conserving
> power.

Which is why I specifically asked OP to show the output of those while
doing something where OP felt that the computer was slow, _and_
reiterated that exact point in my response which you quoted from.

Please at least actually read what you're replying to before resorting
to sarcasm and assuming that people have no clue what they are talking
about or making suggestions to check.

-- 
Michael Kjörling  https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



Re: Performance of my computer

2023-10-31 Thread Max Nikulin

On 31/10/2023 01:57, Greg Wooledge wrote:

On Mon, Oct 30, 2023 at 12:45:38PM -0600, William Torrez Corea wrote:

I haven't partitioned my hard disk.

I have Toshiba L200 Laptop PC Hard drive 1 TB, 5400 rpm, 128 MB/8MB buffer


That doesn't sound right.  128 MB of RAM?


It is buffer size of the hard drive with shingled magnetic recording. 
Otherwise random write performance would be disaster.


It was discussed a year ago

William Torrez Corea to debian-user. How to can make a partition in my 
hard disk ? Wed, 19 Oct 2022 15:22:49 -0600.
I want to improve my partition; my OS is very slow. 


https://lists.debian.org/msgid-search/CAGiORHdshDMmOrDvOsudzR8FYDau42392Ek=mwvqt08m9fs...@mail.gmail.com



Re: Performance of my computer

2023-10-30 Thread Mike Castle
On Mon, Oct 30, 2023 at 5:14 PM Van Snyder  wrote:
> On Mon, 2023-10-30 at 19:40 +, piorunz wrote:
> On 30/10/2023 18:56, Van Snyder wrote:
> Firefox, in every version I've used so far, appears to have memory
>
> leaks. If I kill it, not by clicking its little "X" or Alt-F4, but with
>
> "kill -9", so that it reopens everything when I restart it, my memory
>
> usage immediately drops by 75%. Then it creeps back up.
>
>
> Firefox doesn't have any memory leaks. It actively uses buffers, cache,
>
> filling available memory. I have Firefox running for days, sometimes
>
> weeks. On slow laptop, and fast workstation PC. Same result, no crashes,
>
> no memory leaks.
>
>
> Then why does it use 1/3 as much memory to display the same pages and tabs 
> when I kill it and restart it? That's a symptom of memory leakage.

Do you happen to keep the Web Developer Tools open?  Or console logs
set to persistent?  Those will keep lots of things in memory just in
case you need them as a developer trying to debug an issue.
Generally, if I notice my memory usage going up, I will be sure to
close the Dev Tools and reload the tab a couple of times.  Then,
eventually, the JavaScript garbage collector will kick in and start
releasing the items the Dev Tools have stopped tracking.

FF also has built in performance tools that can be used to determine
what may be using resources.  Menu -> More tools -> Task Manager (aka,
shift-esc or about:processes).

Nothing Debian specific here.
https://support.mozilla.org/en-US/kb/task-manager-tabs-or-extensions-are-slowing-firefox#w_task-manager
has more details.

mrc



kill -9 firefox (Re: Performance of my computer)

2023-10-30 Thread Max Nikulin

On 31/10/2023 01:56, Van Snyder wrote:
Firefox, in every version I've used so far, appears to have memory 
leaks. If I kill it, not by clicking its little "X" or Alt-F4, but with 
"kill -9", so that it reopens everything when I restart it, my memory 
usage immediately drops by 75%. Then it creeps back up.


It may be leaks in JavaScript code running by particular web pages, not 
Firefox fault.


Firefox has the "restore previous session" feature. My expectation is 
that it should work more reliable than "kill -9". The latter may cause 
inconsistency in data saved to disk. I see nothing wrong with "close 
window" (Alt+F4). An alternative is "quit" that closes all windows at once.




Re: Performance of my computer

2023-10-30 Thread Stefan Monnier
> Then why does it use 1/3 as much memory to display the same pages and
> tabs when I kill it and restart it? That's a symptom of memory leakage.

Not necessarily, no.  It may consciously decide to hold on memory that
was used in the past in order to avoid having to re-allocate and
re-initialize it next time.
Some of that is simply "the cache", but there are all kinds of things
like that.

A leak would be if the amount of memory use increases each time you
visit a given page, even though that page always has exactly the
same content.


Stefan



Re: Performance of my computer

2023-10-30 Thread John Hasler
Piotr writes:
> No, it's just buffering everything it can to satisfy hunger for speed,
> set by Chrome and other competitors. Launch Chrome on your computer,
> you will experience similar behaviour, memory hogging. It's not a
> leak, it's new modern "design" for the browsers.

I believe you can adjust memory usage in about:config in Firefox.
-- 
John Hasler 
j...@sugarbit.com
Elmwood, WI USA



Re: Performance of my computer

2023-10-30 Thread piorunz

On 30/10/2023 19:49, Michael Kjörling wrote:

On 30 Oct 2023 13:36 -0600, from willitc9...@gmail.com (William Torrez Corea):

model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz

cpu MHz : 798.205
cpu MHz : 798.173
cpu MHz : 798.250
cpu MHz : 798.223


There's something. You have a 4 x 1.8 GHz CPU but it's actually
running at 800 MHz across all cores. 1.8 GHz is already at the slow
end by modern standards but 800 MHz is definitely slow. If you
actually did this while doing something which you felt was slow, it
should have stepped up the frequency.


CPU is idling and there is nothing to do, I don't know why you want to
investigate normal CPU behaviour. This is absolutely normal. Going down
all the way to 0.80 GHz is actually great, that is definitely conserving
power.

Here's another example:

neofetch | grep CPU
CPU: AMD Ryzen 7 5800X (16) @ 3.800GHz [47.3°C]

$ grep -e '^cpu MHz' /proc/cpuinfo
cpu MHz : 2627.848
cpu MHz : 2880.186
cpu MHz : 2660.697
cpu MHz : 2874.974
cpu MHz : 2878.375
cpu MHz : 2879.568
cpu MHz : 3800.000
cpu MHz : 2200.000
cpu MHz : 2200.000
cpu MHz : 2878.822
cpu MHz : 2879.274
cpu MHz : 2824.946
cpu MHz : 2200.000
cpu MHz : 2200.000
cpu MHz : 3596.336
cpu MHz : 2869.524

Oh look my Ryzen is broken because it's only delivering 2800 MHz instead
of advertised 3800 MHz, yes? No. It's power saving because there is
nothing to do, processor is not busy, so frequency is scaling down. This
is all by default, no tweaks required.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Performance of my computer

2023-10-30 Thread piorunz

On 30/10/2023 22:19, Van Snyder wrote:

Then why does it use 1/3 as much memory to display the same pages and
tabs when I kill it and restart it? That's a symptom of memory leakage.


No, it's just buffering everything it can to satisfy hunger for speed,
set by Chrome and other competitors. Launch Chrome on your computer, you
will experience similar behaviour, memory hogging. It's not a leak, it's
new modern "design" for the browsers.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Performance of my computer

2023-10-30 Thread David Christensen

On 10/30/23 12:04, David Christensen wrote:

On 10/30/23 11:45, William Torrez Corea wrote:

How can improve the performance of my computer?

I have problems when I have a lot of tabs opened in my browser, i am 
using

the libreoffice or playing on Steam. The system blew up.

My browser: Firefox Browser 115.4.0esr (64 bit)
My system: Linux 5.10.0-26-amd64 1 SMP Debian 5.10.197-1 (2023-09-29)
x86_64 GNU/Linux

My browser consumes 655MB of memory and uses 34% of the CPU.

The system uses 30% CPU, 265 Process, 50% memory and swap 9%.

I haven't partitioned my hard disk.

I have Toshiba L200 Laptop PC Hard drive 1 TB, 5400 rpm, 128 MB/8MB 
buffer



Please run the following command and reply with the console session 
(prompt, command entered, output displayed):


# cat /etc/debian_version ; uname -a



On 10/30/23 12:38, William Torrez Corea wrote:
> 11.8
> Linux  5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64
> GNU/Linux


While that does appear to be console output for the command I suggested, 
your post is incomplete -- you did not post the prompt and the command.



This is an example of what I was requesting:

2023-10-30 15:43:45 root@taz ~
# cat /etc/debian_version ; uname -a
11.8
Linux taz 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64 
GNU/Linux



Note that I have set the environment variable "PS1" in the shell 
start-up file ".profile" so that the shell prompt provides useful 
information -- date, time, username, hostname, and current working 
directory:


2023-10-30 15:44:35 root@taz ~
# grep PS1 .profile
export PS1='\n\D{%Y-%m-%d %H:%M:%S} ${USER}@\h \w\n\$ '


Providing good context in your posts will make your posts more useful.



What is the make and model of the computer?



If you answer this question, we can explore options such as upgrading 
the processor, memory, storage, graphics card, etc..




What processor does it have?


On 10/30/23 12:36, William Torrez Corea wrote:
> model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz


Again, posting the prompt and command would help us understand the output.


Looking up the specifications on the Intel web site:


https://ark.intel.com/content/www/us/en/ark/products/75460/intel-core-i74500u-processor-4m-cache-up-to-3-00-ghz.html


That is a 10-year old ultra-low power laptop processor.  It should be 
adequate for light to moderate desktop use, but heavy web sites, heavy 
office documents, and especially games are going to crush it.




What memory modules are installed?


If you answer this question, we can explore options such as upgrading 
the memory modules.




STFW "Toshiba L200" I see:

https://www.toshiba-storage.com/products/toshiba-internal-hard-drives-l200/

Replacing a HDD with an SSD would improve responsiveness when booting, 
starting applications, opening and saving files, backing up, imaging, etc..



David



Re: Performance of my computer

2023-10-30 Thread Dan Purgert
On Oct 30, 2023, Van Snyder wrote:
> On Mon, 2023-10-30 at 19:40 +, piorunz wrote:
> > On 30/10/2023 18:56, Van Snyder wrote:
> > > Firefox, in every version I've used so far, appears to have
> > > memoryleaks. If I kill it, not by clicking its little "X" or Alt-
> > > F4, but with"kill -9", so that it reopens everything when I restart
> > > it, my memoryusage immediately drops by 75%. Then it creeps back
> > > up.
> > 
> > Firefox doesn't have any memory leaks. It actively uses buffers,
> > cache,filling available memory. I have Firefox running for days,
> > sometimesweeks. On slow laptop, and fast workstation PC. Same result,
> > no crashes,no memory leaks.
> 
> Then why does it use 1/3 as much memory to display the same pages and
> tabs when I kill it and restart it? That's a symptom of memory leakage.

Or is it a plugin that leaks (or crap scripts on the sites)?

-- 
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860


signature.asc
Description: PGP signature


Re: Performance of my computer

2023-10-30 Thread Van Snyder
On Mon, 2023-10-30 at 19:40 +, piorunz wrote:
> On 30/10/2023 18:56, Van Snyder wrote:
> > Firefox, in every version I've used so far, appears to have
> > memoryleaks. If I kill it, not by clicking its little "X" or Alt-
> > F4, but with"kill -9", so that it reopens everything when I restart
> > it, my memoryusage immediately drops by 75%. Then it creeps back
> > up.
> 
> Firefox doesn't have any memory leaks. It actively uses buffers,
> cache,filling available memory. I have Firefox running for days,
> sometimesweeks. On slow laptop, and fast workstation PC. Same result,
> no crashes,no memory leaks.

Then why does it use 1/3 as much memory to display the same pages and
tabs when I kill it and restart it? That's a symptom of memory leakage.
> --With kindest regards, Piotr.
> ⢀⣴⠾⠻⢶⣦⠀⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system⢿⡄⠘⠷⠚⠋⠀ 
> https://www.debian.org/
> ⠈⠳⣄


Re: Performance of my computer

2023-10-30 Thread Jeffrey Walton
> On Mon, Oct 30, 2023 at 12:45:38PM -0600, William Torrez Corea wrote:
> > I have problems when I have a lot of tabs opened in my browser, i am using
> > the libreoffice or playing on Steam. The system blew up.
>
> ...
> > My browser: Firefox Browser 115.4.0esr (64 bit)
> > My system: Linux 5.10.0-26-amd64 1 SMP Debian 5.10.197-1 (2023-09-29)
> > x86_64 GNU/Linux
> >
> > My browser consumes 655MB of memory and uses 34% of the CPU.

OP might try another browser that is not so resource hungry:
.

Sorry to hang this of GW's post. I cannot find the original in my Inbox.

Jeff



Re: Performance of my computer

2023-10-30 Thread Michael Kjörling
On 30 Oct 2023 13:36 -0600, from willitc9...@gmail.com (William Torrez Corea):
> model name : Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
> 
> cpu MHz : 798.205
> cpu MHz : 798.173
> cpu MHz : 798.250
> cpu MHz : 798.223

There's something. You have a 4 x 1.8 GHz CPU but it's actually
running at 800 MHz across all cores. 1.8 GHz is already at the slow
end by modern standards but 800 MHz is definitely slow. If you
actually did this while doing something which you felt was slow, it
should have stepped up the frequency.

This _might_ be different on an older kernel but I'm curious what the
CPU frequency governor is set to. Please try:

for policy in /sys/devices/system/cpu/cpufreq/policy*/; do echo $policy ; cat 
$policy/scaling_governor ; cat $policy/scaling_max_freq ; done

(note: all on one line)

and show us the output.

-- 
Michael Kjörling  https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



Re: Performance of my computer

2023-10-30 Thread piorunz

On 30/10/2023 18:56, Van Snyder wrote:

Firefox, in every version I've used so far, appears to have memory
leaks. If I kill it, not by clicking its little "X" or Alt-F4, but with
"kill -9", so that it reopens everything when I restart it, my memory
usage immediately drops by 75%. Then it creeps back up.


Firefox doesn't have any memory leaks. It actively uses buffers, cache,
filling available memory. I have Firefox running for days, sometimes
weeks. On slow laptop, and fast workstation PC. Same result, no crashes,
no memory leaks.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Performance of my computer

2023-10-30 Thread piorunz

On 30/10/2023 19:36, William Torrez Corea wrote:

total        used        free      shared  buff/cache   available
Mem:           7.7Gi       4.3Gi       2.6Gi       373Mi       830Mi 
   2.7Gi

Swap:          8.8Gi       1.4Gi       7.4Gi


Last step: Run command:
sudo inxi -m

And paste the result, then we will know what are your options to expand RAM.

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: Performance of my computer

2023-10-30 Thread Michael Kjörling
On 30 Oct 2023 12:04 -0700, from dpchr...@holgerdanske.com (David Christensen):
> # cat /etc/debian_version ; uname -a

The kernel and Firefox version specified in the original question
match current Bullseye, so that seems a likely guess.

-- 
Michael Kjörling  https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



Re: Performance of my computer

2023-10-30 Thread Michael Kjörling
On 30 Oct 2023 12:45 -0600, from willitc9...@gmail.com (William Torrez Corea):
> I have problems when I have a lot of tabs opened in my browser, i am using
> the libreoffice or playing on Steam. The system blew up.

I'm fairly certain that when you say that "the system blew up", you do
not mean that it literally exploded. Do you mean crashed, or slowed
down considerably?


> My browser: Firefox Browser 115.4.0esr (64 bit)
> My system: Linux 5.10.0-26-amd64 1 SMP Debian 5.10.197-1 (2023-09-29)
> x86_64 GNU/Linux
> 
> My browser consumes 655MB of memory and uses 34% of the CPU.

Unfortunately modern browsers as a rule are quite memory-hungry. My
current Firefox instance (same version) is using ~1GB of memory, and I
don't even have a lot of tabs open or have had it running for
particularly long. Still, 7-8 GB of RAM (as indicated in your response
to Greg) and only half of it in use should be enough for most everyday
needs.


> The system uses 30% CPU, 265 Process, 50% memory and swap 9%.

None of those are particularly high; and you certainly aren't
bottlenecked on any of them. It's normal to see some swap usage even
if you aren't actually using all RAM, especially if the system was
under memory pressure earlier (since the most recent reboot).

Searching for "Toshiba L200" doesn't really tell me anything about
your computer, but since it has a 1 TB 5400 rpm HDD, I would guess
that your computer is not the most up-to-date model. That's fine;
Linux in generally tends to be a good choice for slightly older
computers. However, if you have a processor with few cores (maybe even
just two or four cores), it's entirely possible that something is
bottlenecking on a _single core_. Given your figure of 30% CPU usage,
I wouldn't be surprised if your system has a 4-core CPU and some
single-thread process is bottlenecking on single-core performance.
Depending on the exact tool, you'd see either a single core fully
utilized and all others idle as 25% utilization, or as 100%
utilization (with all four cores being fully utilized then being shown
as 100% or 400% CPU usage, respectively).

Could you show us the output of these four commands executed in a
terminal _while you're doing something which you feel is slow_?

grep -m 1 -e '^model name' /proc/cpuinfo

grep -e '^cpu MHz' /proc/cpuinfo

free -m

grep -c '^processor' /proc/cpuinfo 

That will tell us what CPU and how much memory and swap your computer
has.

-- 
Michael Kjörling  https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



Re: Performance of my computer

2023-10-30 Thread David Christensen

On 10/30/23 11:45, William Torrez Corea wrote:

How can improve the performance of my computer?

I have problems when I have a lot of tabs opened in my browser, i am using
the libreoffice or playing on Steam. The system blew up.

My browser: Firefox Browser 115.4.0esr (64 bit)
My system: Linux 5.10.0-26-amd64 1 SMP Debian 5.10.197-1 (2023-09-29)
x86_64 GNU/Linux

My browser consumes 655MB of memory and uses 34% of the CPU.

The system uses 30% CPU, 265 Process, 50% memory and swap 9%.

I haven't partitioned my hard disk.

I have Toshiba L200 Laptop PC Hard drive 1 TB, 5400 rpm, 128 MB/8MB buffer



Please run the following command and reply with the console session 
(prompt, command entered, output displayed):


# cat /etc/debian_version ; uname -a


What is the make and model of the computer?


What processor does it have?


What memory modules are installed?


STFW "Toshiba L200" I see:


https://www.toshiba-storage.com/products/toshiba-internal-hard-drives-l200/

Replacing a HDD with an SSD would improve responsiveness when booting, 
starting applications, opening and saving files, backing up, imaging, etc..



David



Re: Performance of my computer

2023-10-30 Thread Greg Wooledge
On Mon, Oct 30, 2023 at 12:45:38PM -0600, William Torrez Corea wrote:
> I have problems when I have a lot of tabs opened in my browser, i am using
> the libreoffice or playing on Steam. The system blew up.

Sounds like you want more memory.

> My browser: Firefox Browser 115.4.0esr (64 bit)
> My system: Linux 5.10.0-26-amd64 1 SMP Debian 5.10.197-1 (2023-09-29)
> x86_64 GNU/Linux
> 
> My browser consumes 655MB of memory and uses 34% of the CPU.
> 
> The system uses 30% CPU, 265 Process, 50% memory and swap 9%.
> 
> I haven't partitioned my hard disk.
> 
> I have Toshiba L200 Laptop PC Hard drive 1 TB, 5400 rpm, 128 MB/8MB buffer

That doesn't sound right.  128 MB of RAM?  I think you must have more
than that, or else you wouldn't have been able to run all those programs
*at all*, never mind worrying about performance.

What does "free -m" say?



Re: Performance of my computer

2023-10-30 Thread Van Snyder
On Mon, 2023-10-30 at 12:45 -0600, William Torrez Corea wrote:
> How can improve the performance of my computer?
> 
> 
> I have problems when I have a lot of tabs opened in my browser, i am
> using the libreoffice or playing on Steam. The system blew up.
> 
> My browser: Firefox Browser 115.4.0esr (64 bit)
> My system: Linux 5.10.0-26-amd64 1 SMP Debian 5.10.197-1 (2023-09-29) 
> x86_64 GNU/Linux

Firefox, in every version I've used so far, appears to have memory
leaks. If I kill it, not by clicking its little "X" or Alt-F4, but with
"kill -9", so that it reopens everything when I restart it, my memory
usage immediately drops by 75%. Then it creeps back up.
> My browser consumes 655MB of memory and uses 34% of the CPU.
> 
> The system uses 30% CPU, 265 Process, 50% memory and swap 9%. 
> 
> I haven't partitioned my hard disk.  
> 
> I have Toshiba L200 Laptop PC Hard drive 1 TB, 5400 rpm, 128 MB/8MB
> buffer
> 
> -- 
> 
> With kindest regards, William.
> 
> ⢀⣴⠾⠻⢶⣦⠀ 
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄ 
> 
> 
>