LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2012, 12:45 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Kpdf: immoderate memory usage or it does not get all the memory it should.


Kernel 2.6.21.5, Slackware 12.0
kpdf 0.5.7 (using KDE 3.5.7), which uses xpdf 3.02

Hi:
When reading some kind of material, using the PDF reader mentioned above, many times I find myself going back and forth between two consecutive pages. For the sake of clarity: take pages 24 and 25 of the document, these being the page numbers as seen by the reader, not the ones printed on the document, and suppose a go back and forth between pages 24 and 25 many times. Each time I switch the page, I must wait between one and two seconds for the reader window to be painted.

I know the software listed above is a bit too big for a machine with 256MB of RAM and an old CPU (Intel Celeron @1100MHz) like mine. Also, in kpdf doing Settings> Configure KPDF> Performance> Memory Usage, I can choose between Normal (default) ("for systems with 256MB of memory, tipically", kpdf says) and Aggressive ("for systems with more than 512MB"). If I choose Aggressive, then a lot of consecutive pages (pages of the document) are buffered and the behaviour is acceptable. But for a 256MB machine, Normal should be the option of choice.

I am trying to understand this particular scenario of mine rather than trying to solve a problem. Suppose that, in order to make that back and forth movement, the program must buffer three pages. Are 256MB of RAM not enough to buffer three document pages? (My video card lacks a dedicated RAM and uses the system RAM, but even so ...).

I have the display at depth = 16, mode = 800x600 (xorg.conf). This gives 16 * 800 * 600 = 7680000 bits = 960000 bytes = approx 1MB, and the number of pages being three, we get 3MB. 3MB is less than 1.2 per cent of the total RAM installed in this machine (disregarding the address space used by the BIOS ROM)!

On the other hand, the fact that changing to Memory Usage> Aggressive greatly improves performance (it scrolls in the blink of an eye) says the issue is not a slow CPU or GPU. Can somebody tell why Kpdf has such a tiny memory buffer (tiny in relation to the total memory space and running under the conditions present at my system) for the data to be displayed?

Last edited by stf92; 06-26-2012 at 12:48 AM.
 
  


Reply



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
memory metric to monitor memory usage or swap? karlochacon Linux - Newbie 5 08-13-2011 03:49 PM
looking for free database that has low memory usage and innodb and memory like engin golden_boy615 Linux - Software 8 05-08-2011 07:05 AM
pthreads virtual memory usage -- memory is not freed after thread exit minimol Linux - General 2 05-26-2009 01:19 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:34 AM.

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
Open Source Consulting | Domain Registration