You are not logged in.

#1 2013-01-04 11:47:02

chao787
Member
Registered: 2012-11-01
Posts: 2

Slow to show started programs.

It confused me about serveral weeks.

Using emacs -Q to start a raw config emacs.
It begin to show emacs in more than 5 seconds, but emacs-init-time is 0.4secs.

Strange thing is it loads faster--begin to show immediately after I start emacs--a few times(1 time of 10).
What's wrong?

Some other programs are also not always start immediately.
such as firefox, goldendict, audacity, chromium.
Is it functional correct?
All software and kernel updated today.
* /etc/fstab info:
UUID=737b3069-a188-4bac-abce-6c3a1178bbaa / ext4 defaults 0 1

* My laptop settings:
Thinkpad x220i
Solid HardDisk: 60GB
RAM: 8GB 1333MHz (2*4GB)
i3 2310M

Offline

#2 2013-01-04 12:18:41

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Slow to show started programs.

"Solid HardDisk"? Dafuq is that? It's either an "SSD" or an "HDD".

Solid State Drive
Hard Disk Drive

It can't be both; unless it's a Hybrid HDD - which is still a HDD for the most part.

Try:

$ man time
$ time firefox

"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#3 2013-01-04 15:43:40

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: Slow to show started programs.

chao787 wrote:

It confused me about serveral weeks.

Using emacs -Q to start a raw config emacs.
It begin to show emacs in more than 5 seconds, but emacs-init-time is 0.4secs.

Strange thing is it loads faster--begin to show immediately after I start emacs--a few times(1 time of 10).
What's wrong?

Some other programs are also not always start immediately.
such as firefox, goldendict, audacity, chromium.
Is it functional correct?
All software and kernel updated today.
* /etc/fstab info:
UUID=737b3069-a188-4bac-abce-6c3a1178bbaa / ext4 defaults 0 1

* My laptop settings:
Thinkpad x220i
Solid HardDisk: 60GB
RAM: 8GB 1333MHz (2*4GB)
i3 2310M

After you launch a program once, some of its data stays in your memory cache after it closes. Thus, the next time you launch it, it will start faster because it is already somewhat loaded. That part is normal.

Firefox, Chromium, and Audacity are pretty big programs that will take a long time to load the first time. How slow are those?

Offline

#4 2013-01-05 02:46:06

chao787
Member
Registered: 2012-11-01
Posts: 2

Re: Slow to show started programs.

DSpider wrote:

"Solid HardDisk"? Dafuq is that? It's either an "SSD" or an "HDD".

I mean SSD. Sorry about that.

Do you mean time's system CPU time is the point?
Trying time* on some program.

$ time firefox
firefox  1.02s user 0.12s system 97% cpu 1.171 total
firefox  1.30s user 0.18s system 97% cpu 1.518 total
$ time audacity
audacity  1.04s user 0.23s system 52% cpu 2.447 total
audacity  1.51s user 0.26s system 29% cpu 5.968 total
$time emacs -Q
emacs -Q  1.14s user 0.06s system 16% cpu 7.086 total
emacs -Q  1.12s user 0.07s system 17% cpu 6.905 total

*Close program immediately after program start to wait for my reply.

I think maybe something wrong with my SSD or related settings on this situation.

pogeymanz wrote:

After you launch a program once, some of its data stays in your memory cache after it closes.

Agree.

Offline

#5 2013-01-05 06:59:10

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Slow to show started programs.

See the mount flags from here:

https://wiki.archlinux.org/index.php/SSD


I recommend using "noatime" instead of "relatime", unless you use Mutt.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

Board footer

Powered by FluxBB