[kwlug-disc] Memory Issue

Khalid Baheyeldin kb at 2bits.com
Sat Feb 9 20:17:33 EST 2019


Firefox consumes less memory when you configure it for 1 content process,
vs. the
default (which is the number of cores in your CPU).

With that, you are using 2.1GB out of 3.75GB. If you set your swappiness to
be 5%,
then there should be no swapping until 95% of RAM is in use.

Now try Atom, and see if it will fit in what remains of free memory, and
take an image
of htop and add it to the same folder (e.g. Firefox1ProcAndAtom).



On Sat, Feb 9, 2019 at 8:04 PM amitoj singh <amitojsingh95 at gmail.com> wrote:

> corrected link
> https://drive.google.com/open?id=1rtSnJUIVRPvYkeNYg-CcBcYXileeOxNH
>
> On Sat, Feb 9, 2019 at 8:02 PM Khalid Baheyeldin <kb at 2bits.com> wrote:
> >
> > The link only has one image: when nothing is running.
> >
> > Actually, you have some background processes that take a considerable
> amount of memory
> > (mysqld, skype, compiz)
> >
> > MySQL can be tuned to reduce its memory footprint, since you are
> probably using it only
> > for development purposes, and not real production work.
> >
> > The rest of the images are not in the link you provided.
> >
> >
> >
> > On Sat, Feb 9, 2019 at 7:45 PM amitoj singh <amitojsingh95 at gmail.com>
> wrote:
> >>
> >> here the 3 outputs.
> >> 1st. Where nothing is running.
> >> 2nd. When I change the content Process limit to ONE
> >> 3rd. When the processor is in default mode using FOUR content process
> limit
> >>
> >> https://drive.google.com/open?id=1f0j-XDsImPNkHe4Cy5_FEtC8KVXRXW0x
> >>
> >> On Sat, Feb 9, 2019 at 6:57 PM Khalid Baheyeldin <kb at 2bits.com> wrote:
> >> >
> >> > Let us focus on only one tool (htop) to avoid confusion.
> >> >
> >> > Do the following:
> >> >
> >> > 1. In Firefox, goto Preferences, then Performance, and instead of 4
> processes, select only
> >> > one process. That will reduce its memory usage drastically.
> >> >
> >> > 2. Quit Firefox
> >> >
> >> > 3. Quit Atom
> >> >
> >> > 4. Go to htop, then F2, then Display Options, and only enable the
> following:
> >> >
> >> > [x] Hide kernel threads
> >> > [x] Hide userland process threads
> >> > [x] Display threads in a different color
> >> > [x] Show custom thread names
> >> > [x] Show program path
> >> > [x] Highlight program "basename"
> >> > [x] Highlight large numbers in memory counters
> >> > [x] Detailed CPU time (System/IO-Wait/Hard-IRQ/Soft-IRQ/Steal/Guest)
> >> > [x] Add guest time in CPU meter percentage
> >> >
> >> > Every other option should be off (no [x]).
> >> >
> >> > Upload an image of the laptop without Atom or Firefox running.
> >> >
> >> > 5. Start Firefox and compare the memory usage vs. from when you had 4
> processes.
> >> >
> >> > When you do that, and upload images of htop, make sure they are in a
> different folder
> >> > there, so we don't confuse them with the previous images.
> >> >
> >> >
> >> > On Sat, Feb 9, 2019 at 6:47 PM amitoj singh <amitojsingh95 at gmail.com>
> wrote:
> >> >>
> >> >> On Sat, Feb 9, 2019 at 6:12 PM Khalid Baheyeldin <kb at 2bits.com>
> wrote:
> >> >> >
> >> >> > In the link you provided on Google Drive, there are 5 screenshots.
> >> >> > No idea which one is for what test scenario ...
> >> >>
> >> >> I rename the images. Check again. Does that make sense?
> >> >>
> >> >> --
> >> >> "If you think you can then you definitely can."
> >> >> Amitoj singh
> >> >> https://github.com/amitojsingh
> >> >> https://amitojsworld.wordpress.com
> >> >
> >> >
> >> >
> >> > --
> >> > Khalid M. Baheyeldin
> >> > 2bits.com, Inc.
> >> > Fast Reliable Drupal
> >> > Drupal optimization, development, customization and consulting.
> >> > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
> >> > Simplicity is the ultimate sophistication. -- anonymous
> >> >
> >> > _______________________________________________
> >> > kwlug-disc mailing list
> >> > kwlug-disc at kwlug.org
> >> > http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
> >>
> >>
> >>
> >> --
> >> "If you think you can then you definitely can."
> >> Amitoj singh
> >> https://github.com/amitojsingh
> >> https://amitojsworld.wordpress.com
> >
> >
> >
> > --
> > Khalid M. Baheyeldin
> > 2bits.com, Inc.
> > Fast Reliable Drupal
> > Drupal optimization, development, customization and consulting.
> > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
> > Simplicity is the ultimate sophistication. -- anonymous
> >
> > _______________________________________________
> > kwlug-disc mailing list
> > kwlug-disc at kwlug.org
> > http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
>
>
> --
> "If you think you can then you definitely can."
> Amitoj singh
> https://github.com/amitojsingh
> https://amitojsworld.wordpress.com
>


-- 
Khalid M. Baheyeldin
2bits.com, Inc.
Fast Reliable Drupal
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
Simplicity is the ultimate sophistication. -- anonymous
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20190209/5a95fd08/attachment.htm>


More information about the kwlug-disc mailing list