Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Why eats my Knoppix so much memory?

  1. #11
    Member registered user
    Join Date
    Apr 2004
    Posts
    34

    lol

    i have a similar comp

    i have installed by hand (apt-get) on a woody os

    i can't give you the link for testing
    ==> someone has cracked it and changed the root pass

    i have no time now to look for the solution

  2. #12
    Junior Member registered user
    Join Date
    May 2004
    Location
    Munich, Germany
    Posts
    10
    After donating my server additional 64MB of RAM (I know itīs not much but I only have 2 banks of RAM available, so I replaced a 64MB with a 128MB) I believe there must be something completely wrong with it..

    It still eats up to 95% (with opened dselect) of the Memory, at the moment 85%.

    What happens If I put 512 or more MB in it? Will it still continue to gorge my mem?



    Any suggestions?

  3. #13
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    Is the amount of memory used all the time, or only at a peak, while the script is running?
    I would start top first, then call the server, and compare the values, and compare it to the usage after a while - few seconds.

  4. #14
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    wait a minue here. could we se a dump frpm top please. you see linux never reclaims used memory. it keeps the "cashe" there as long as there is no demand for more ram. linux reasons that memory is faster than the fastest hdd so beter use all available instead of swapping when not needed.

  5. #15
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --Whaaaaaat? Of *course* Linux reclaims used memory. That's what the swap space is used for, among other things. Do a google search on "swappiness":

    http://kerneltrap.org/node/view/3000

    Quote Originally Posted by OErjan
    wait a minue here. could we se a dump frpm top please. you see linux never reclaims used memory. it keeps the "cashe" there as long as there is no demand for more ram. linux reasons that memory is faster than the fastest hdd so beter use all available instead of swapping when not needed.

  6. #16
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --Here's something I noticed right off the bat:

    [[ Before I start to explain my problem I want you to know my system details:
    Knoppix 3.4 HDD-Install
    AMD K6 500Mhz
    192MB Memory
    8GB HDD (1GB Linux Swap)
    Connected to Internet via DSL over Router
    10Mbit LAN
    ]]

    --First of all, an AMD K6 is not the best thing to be running a server on. Personal experience with older AMD's tells me they're flaky, and generally slower than Intels at the same speed rating. If you can get a faster (used, even) machine with an Intel (or AMD Athlon/Duron) of 800MHz or better, that would be a good step. However, I realize that $$$/resources may be limited, so I will try other suggestions as well. (My "fast" machine is currently a 900MHz AMD Duron because they were more affordable at the time, so I know whereof I speak.)

    --Try enabling DMA and 32-bit mode using hdparm:
    ' hdparm -c1 -d1 -u1 /dev/hda '

    --This should speed up the hard drive. (If you start getting DMA errors, shutdown immediately and reboot - and do not re-enable the hdparm.)

    --Increase the RAM to at least 256MB, if possible. More is better. If using the machine as a server, do not run anything else on it (disable all GUI, and do not use it as a desktop machine.)

    --Replace the 10MBit LAN card with 100MBit. Trust me, it makes a difference. However, you also need 100MBit infrastructure (hub/switch, cat5) to really take advantage of it. Personally, I was happy with 10mbit myself until switching to 100. Worth the investment -- 10mbit only does about 700KB/sec, while 100mbit does ~10 times that.

    --Recompile your kernel. I can send you a sample config file, if you want. Especially if you're using the default one that came with an older Knoppix, it's worth your while to tweak it for your specific hardware -- you can save disk space (delete old modules after you get things working right) and memory, and compile things for your specific architecture. My Linuxtips page at the bottom of all my posts has more info on kernel recompiling.

    --Outside of that, I know there are things to speedup Apache and the rest, but I don't have personal experience with them. (I'm currently only running Squid on a 233MHz Pentium-1 for my Internet needs.) Your best bet is to google around for speedup tips, and maybe find a guru in your area to also help you with config tips.

    --BTW, what kind of web pages are you loading?

  7. #17
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    it reclaims it when needed, not before.

  8. #18
    Junior Member registered user
    Join Date
    May 2004
    Location
    Munich, Germany
    Posts
    10
    I overlooked the second page, thanks for your comments Dave.

    I will try the hints you gave me.

    Concerning the 10Mbit: Iīm connected over a 10Mbit router, the card can 100Mbit.

    Iīm a web-developer and currently working on a shop-system, so I understand with database and all the stuff there can be a heavy load, but I didn`t expect it to be sooo slow.

    Iīm already a little bit fed up with that, thinking already to switch back to windows.

    On another port on a different machine I run a windows-server with similar hardware-components, and the sites are served like a bat outta hell.

    (Iīm not biased at all, I just see the facts)

    I already tried to uninstall a lot of software, but with no effect.

    Maybe, If time permits, I will try another linux distribution, it seems knoppix is not suitable for my needs

  9. #19
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    Sorry, Dave, but I have to disagree.

    Performance-Tuning without investigation for the bottleneck, is a waste of time and money and hoping for X-mas.

    The page is of less than 14 kb.
    A 10 Mbit connection should send it in less than 0.1s.

    As far as I understood Photonix, only few users will use this server, so investing in a new CPU would be a buisiness-solution - perhaps.

    Photonix: Uninstalling software is giving you hd-space. Will not speed up anything, nor free memory.

    You didn't answer my question, about the memory-peek. Not interested?

  10. #20
    Junior Member registered user
    Join Date
    May 2004
    Location
    Munich, Germany
    Posts
    10
    Hi unknown,

    unfortunately there are no indications for memory peaks while accessing the server (I observe top via SSH). Nor are there CPU-peaks. If there WERE peaks, they would be so short they wouldnīt bother...

    Paradoxically sometimes the pages loads *** fast, in less than 1 sec. It's mainly when I access pages with more database-querys than html-words But thatīs really seldom.

    Maybe thatīs a clue, maybe itīs purely apache which causes troubles.

    Though I don't know...

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Memory Management in Knoppix?
    By thaumielx72 in forum MS Windows & New to Linux
    Replies: 4
    Last Post: 11-24-2005, 05:23 PM
  2. too low memory, no KNOPPIX filesystem
    By Alexxx in forum Customising & Remastering
    Replies: 1
    Last Post: 02-24-2004, 04:24 PM
  3. Knoppix with low memory?
    By billyjobob in forum General Support
    Replies: 7
    Last Post: 11-04-2003, 07:17 AM
  4. 1 GB memory boot ISO image run entirely from memory?
    By rrolsbe in forum General Support
    Replies: 1
    Last Post: 09-12-2003, 09:42 PM
  5. Knoppix on a computer with 14 MB RAM memory
    By pnti in forum General Support
    Replies: 3
    Last Post: 07-14-2003, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


PfSense/OPNsense 6x1Gb, Quad Core, 8GB, 128GB SSD, AES-NI, QAT (Lanner FW-7525D) picture

PfSense/OPNsense 6x1Gb, Quad Core, 8GB, 128GB SSD, AES-NI, QAT (Lanner FW-7525D)

$85.00



OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN picture

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN

$298.00



Cisco ASA 5506-X Network Security Firewall Appliance with FirePOWER Services picture

Cisco ASA 5506-X Network Security Firewall Appliance with FirePOWER Services

$49.99



Cisco ASA 5506-X Network Security Firewall Appliance- No Adapter picture

Cisco ASA 5506-X Network Security Firewall Appliance- No Adapter

$50.00



Fortinet FortiGate FortiWiFi 80F Network Security Firewall (FG-80F) picture

Fortinet FortiGate FortiWiFi 80F Network Security Firewall (FG-80F)

$73.49



OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$145.00



10GbE OPNsense Firewall VPN AES QAT 4-Core Atom C3558 2.20GHz 8GB DDR4 128GB SSD picture

10GbE OPNsense Firewall VPN AES QAT 4-Core Atom C3558 2.20GHz 8GB DDR4 128GB SSD

$165.00



PfSense/OPNsense - 2x1Gb, 4x2.5Gb, 2x10Gb, C3558, 4GB, 128GB NVMe, AES-NI, QAT picture

PfSense/OPNsense - 2x1Gb, 4x2.5Gb, 2x10Gb, C3558, 4GB, 128GB NVMe, AES-NI, QAT

$259.00



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



SonicWall SOHO Wireless Network Security Appliance 01-SSC-0218 picture

SonicWall SOHO Wireless Network Security Appliance 01-SSC-0218

$199.00