Debian :: RAM Or Memory Optimization

Jul 19, 2015

I think linux must has something like RAM or memory optimization , when system can not find enough RAM .some process must be control and control some process for eat RAM .

View 4 Replies


ADVERTISEMENT

Programming :: Memory Optimization For Child Processes?

Sep 6, 2010

I work on Linux for ARM processor for cable modem. There is a tool that I have written (as the job demands) that sends/storms customized UDP packets using raw sockets. I form the packet from scratch so that we have the flexibility to play with different options. This tool is mainly for stress testing routers.

The details are here.

I actually have multiple interfaces created. Each interface will obtain IP addresses using DHCP. This is done in order to make the modem behave as virtual customer premises equipment (vcpe).

When the system comes up, I start those processes that are asked to. Every process that I start will continuously send packets. So process 0 will send packets using interface 0 and so on. Each of these processes that send packets would allow configuration (change in UDP parameters and other options at run time). Thats the reason I decide to have separate processes.

I start these processes using fork and excec from the provisioning processes of the modem.

The problem now is that each process takes up a lot of memory. Starting just 3 such processes, causes the system to crash and reboot.

I have tried the following:- 1-I have always assumed that pushing more code to the Shared Libraries will help. So when I tried moving many functions into shared library and keeping minimum code in the processes, it made no difference to my surprise.

2-I also removed all arrays and made them use the heap. However it made no difference. This maybe because the processes runs continuously and it makes no difference if it is stack or heap?

3-I suspect the process from I where I call the fork is huge and that is the reason for the processes that I make result being huge. I am not sure how else I could go about. say process A is huge -> I start process B by forking and excec. B inherits A's memory area. So now I do this -> A starts C which inturn starts B will also not help as C still inherits A?. I used vfork as an alternative which did not help either. I do wonder why.

reduce the memory used by each independent child processes.

View 1 Replies View Related

General :: Memory Optimization For Child Processes?

Sep 6, 2010

I work on Linux for ARM processor for cable modem. There is a tool that I have written (as the job demands) that sends/storms customized UDP packets using raw sockets. I form the packet from scratch so that we have the flexibility to play with different options. This tool is mainly for stress testing routers.I actually have multiple interfaces created. Each interface will obtain IP addresses using DHCP. This is done in order to make the modem behave as virtual customer premises equipment (vcpe).

When the system comes up, I start those processes that are asked to. Every process that I start will continuously send packets. So process 0 will send packets using interface 0 and so on. Each of these processes that send packets would allow configuration (change in UDP parameters and other options at run time). Thats the reason I decide to have separate processes. I start these processes using fork and excec from the provisioning processes of the modem. The problem now is that each process takes up a lot of memory. Starting just 3 such processes, causes the system to crash and reboot.

I have tried the following:-

1-I have always assumed that pushing more code to the Shared Libraries will. when I tried moving many functions into shared library and keeping minimum code in the processes, it made no difference to my surprise.

2-I also removed all arrays and made them use the heap. However it made no difference. This maybe because the processes runs continuously and it makes no difference if it is stack or heap?

3-I suspect the process from I where I call the fork is huge and that is the reason for the processes that I make result being huge. I am not sure how else I could go about. say process A is huge -> I start process B by forking and excec. B inherits A's memory area. So now I do this -> A starts C which inturn starts B will also not help as C still inherits A?. I used vfork as an alternative which did not help either. I do wonder why.

View 1 Replies View Related

General :: Optimization - Set The Timezone In A Non-standard Distro?

Apr 27, 2010

I'm trying to set the time in an embedded system ... There isn't a link/file /etc/localtime and /usr/ has only two subdirectories /usr/bin and /usr/sbin.Is there something I can try or do I just give up and make UTC be my timezone?

View 2 Replies View Related

Ubuntu Multimedia :: Flash Troubleshooting And Optimization ?

Jun 25, 2010

Due to the enormous quantity of flash plugin related problems, I decided to expand my tutorials and create this thread to provide support for flash issues (is getting really hard to follow all the flash related threads and provide a decent support)

Current available tutorials:
Flash Optimization
Flash Issues & Solutions

Firefox extensions:

When asking for support, please describe your problem in detail and provide the output of the following commands and instructions. This will make sure I will have a good understanding of your Firefox and Flash installations, so I don't need to guess what might be happening to your system:

1 - Flash Version

Type about:config in Firefox address bar, then type plugin.expose_full_path in the filter, then double-click the same item in the results to make it true. Then type about:plugins in the address bar, find Shockwave Flash, copy the corresponding Path and Version and paste here. it should look lie the image below:

2 - Firefox version and architecture

To find Firefox version and architecture, click "Help >> About Mozilla Firefox" in the menu. The info will be located at the bottom of the info dialog:

3 - System Info

Execute the following commands then copy the generated file, named firefox-report.txt from your Desktop and upload it here or paste the contents.

To execute those commands, select the entire content below, then go to "Applications >> Accessories >> Terminal" and click the terminal with the middle-mouse button.

Code:

View 9 Replies View Related

Server :: Blocking Bad Bots & HTACCESS Optimization?

Nov 7, 2010

My Pastebin for .HTACCESSIf you can offer any tips on improvements..but the main reason: I cannot get the bots to stop showing up.Esp the first one in the list.I need to block these two specifically

Code:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
&

[code]....

View 5 Replies View Related

Server :: Postfix & Anti-spam Optimization

Jun 21, 2011

My postfix server has been working great for the last 1-2 years. Lately the number of spams encreased (from 1-2 every day to aprox 8-10 every day per domain for some domains ).I post here the output of postconf -n. Maybe someone gives me some advices about what cat I change or how can I optimize. I must recognise that I don't fully understand details of how postfix and all the restrictions works together, but I will document every advice.

View 4 Replies View Related

Programming :: Implementing Search Engine Optimization (SEO)

Mar 31, 2011

Though I have developed some web applications (automation tools) using PHP which have been primarily meant for Intranet (within the organizations I have worked for), I have paid little attention to SEO (it was not required until now). But now I want to understand how do we go about implementing SEO and where do we fit this mechanism in a system / website?

Do we need any other tools or learn some specific programming /scripting language to achieve it?Will implementing a good SEO yield identical results irrespective of what search engine (be it Google or Yahoo!) is being used by users?

View 1 Replies View Related

Fedora Installation :: Partitioning / Mounting Points For SSD Optimization

Feb 23, 2011

I am building a new MiniITX system and partitioning/mounting points for SSD optimization. The majority of / will be on the SSD, but files that are written to often shouldn't be there as the high write operations will diminish the lifetime of the SSD. I will also have a 450G SATAIII drive where I believe that directories like /tmp and /home should be. I also like the idea of a RamDisk for browser/etc files

Intended system:
MoBo: Minix 890GX-USB3
CPU: AMD Phenom II X4 910e Deneb
RAM: G.SKILL 8GB (2 x 4GB) DDR3 1333 (PC3 10666)
HDA: SSD Corsair SATAIII 2.5" 128GB
HDB: Western Digital SATAIII 2.5" 450GB
PSU: Pico 160W PSU
Case: MiniBox M350
OS: Fedora (with Win7 in VM or DualBoot)

View 3 Replies View Related

Networking :: Local Dns Server Cache Size Optimization

Apr 24, 2011

Does anybody have some thoughts about a local dns server cache size? What is the optimal one? In terms of memory consumption and number of re-enters into the cache. Lets say that default size is 150, so I've change this to 500 and after some time I see 379 re-enters into the cache. Simply put I need to increase the cache size 2 times. But due to the fact that browser preloads dns names it is not possible to interpret the number of overwrites in terms that it is not possible to say if useful cache entries were overwritten or those that the browser precached ( in other words not needed ). In this case it is ok to overwrite unwanted entries because it is not likely that I'll need these entries anyway

I'm running the dnsmasq on an embedded system with limited ram and with an umts dongle attached. It is important to keep the cache size as small as possible to reduce memory usage and at the same time to reduce number of external lookups because dns latency of the umts connection is high (1-2sec for the dns query)

View 1 Replies View Related

General :: Ubuntu Boot Optimization Strategy And Oddity

Jan 7, 2010

I want to get Ubuntu blazing fast and I started out by changing the swappiness to just 10 and got a huge performance spike. I was very happy with that. Then I used rcconf and GNOME's startup applications GUI and edited out quite a bit but still have a somewhat slow boot. Well, the next thing I thought I should do is edit the inittab and rid my self of some surely unneeded services. Well, according to this website, Ubuntu doesn't use this inittab, but etc/event.d doesn't exist either! Well I looked in /etc for something related to init, and I believe I have found where these services are called upon. /etc/init.d and /etc/init.

Now the files contain many scripts for different services so I was wondering how to edit these to turn them off to optimize my boot! Do I comment out the unneeded ones? My next question is what strategy should I use as I edit these? I think I can get rid of "ssh" and "cups" and "samba" since I don't use these. Can someone point me to a nice list of services and their functions? I just want to optimize Ubuntu as much as possible to not only have a fast computer for my self and family to use, but to impress Windows users with the speed that can be obtained from Linux!

View 4 Replies View Related

Server :: Mysql Optimization -- Copying To Tmp Table On Disk?

Nov 16, 2010

we had a CENTOS 5.5 x86_64 machine with 8ered with MySQL 5.0.91-community.Currently we had a very high number of Created_tmp_disk_tables (31k in 4,5 hours!!!).I've read suggestion that we need to increase tmp_table_size, and we've set tmp_table_size to 64M, but this drupal modul's query still cause mysql create tmp table on disk

Code:
SELECT DISTINCT node.nid AS nid,
comments.subject AS comments_subject,

[code]...

View 4 Replies View Related

Ubuntu Servers :: Fan Control - Power-Noise Optimization On The Proliant DL120 G6 ?

Jul 12, 2011

I'm trying to get the HP Proliant DL120 G6 server a lot quieter after startup under Ubuntu Server 11.04 (x64).

For now, it seems like there is no fan control at all: when I start the server, the fans start running at max speed, then it slightly lowers to 3.5K-5K RPM. Once there, it never goes down or up. There's just no fan or power control at all.

In no specific order, I will describe as much as I can my situation.

The system is IPMI 2.0 compliant, so when using the ipmitool package I can get the values of the sensors like this:

Code:

I tried to follow the procedures for using the fancontrol package together with lm-sensors, as shown at [url]. One of the very first steps is to launch "sensors-detect", which gives:

Code:

View 8 Replies View Related

Programming :: BASH Script Optimization For Testing Large Number Of Files

Sep 18, 2010

I want to move files from a $SOURCEDIR to a $DESTBASE/$DESTDIR. Under $DESTBASE there are many directories, and I need to test beforehand if a file from $SOURCEDIR already exists in any of them.

This is obviously extremely slow, and the real use case involves dozens of dirs and thousands of files. Creating a temporary "index" file for the find command (instead of running it every iteration) speeds it up a little, but it's still very clumsy.

View 14 Replies View Related

Debian Hardware :: Debian Squeeze Memory Amount Incorrect?

Feb 23, 2011

Fresh install of Debian 6.0 (squeeze) and the memory shows 3.8 GB. I have 6 sticks of 2 gb on the board.

Pertinent dmesg lines: AMI BIOS detected: BIOS may corrupt low RAM, working around it.

3083MB HIGHMEM available.
883MB LOWMEM available.
Bios tests 12 gb of ram fine.

View 4 Replies View Related

Debian :: How Debian 5 Manage Physical Memory

Jan 1, 2011

i need some information about how Debian 5 manage the physical memory . such as the memory management algorithms. i have googled it a lot but i couldn't find it.

View 1 Replies View Related

Debian :: Iceweasel Using Up All Memory

Feb 25, 2016

I just installed Debian on a new computer yesterday, it's more or less a fresh install. This morning I launched Iceweasel and it brought my computer to it's knees. I ran top, and found out that there was a process called "Web Content" using up 30 gigs of memory! Further experimentation shows that Iceweasel is fine until I open up a tab or two, and then it quickly begins consuming all my memory (I have 24 gigs) and swap space. I'm currently using Chrome, which is working fine, but I'd really prefer Iceweasel.

View 6 Replies View Related

General :: Application Virtual Address Space Memory Allocation - Memory Does Not Get Free

Apr 20, 2010

I am using malloc and frees a lot in my program. It shows its allocated but when i remove it doesnt show as the memory is removed(I am using the top command to view VIRT memory usage). If this continously grows what would happen to my program (Will it go out of memory?)

View 4 Replies View Related

Fedora Hardware :: Checking Computer Memory - Specification Shows 2 GB Of Memory Instead Of GB

Feb 7, 2011

Fedora 14 xfce
HP Mini 210

I am looking to buy some memory for my netbook. Currently I have 1 GB of DDR3 memory. However, the specification says that 2 GB of memory is the max. However, when I do the following it says that 4GB is the max:

[Code].....

View 3 Replies View Related

General :: Ubuntu - Memory Full, Process Memory Usage Doesn't Add Up In Top?

Mar 18, 2011

I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.

View 1 Replies View Related

Server :: Clear Cache Memory ( RHEL 5.1 ) As It Consumes Almost 100% Physical Memory?

Jan 11, 2010

let me know how to clear cache memory ( RHEL 5.1 ) as it consumes almost 100% physical memory.

View 3 Replies View Related

Software :: Free Database That Has Low Memory Usage And Innodb And Memory Like Engin

May 3, 2011

I am looking for free database that has low memory usage and innodb and memory like engins that has C API and support trigger and client/server support for using in embedded linux systems.

View 8 Replies View Related

Debian :: Boot From Live DVD Into RAM Memory

Dec 30, 2015

When Debian OS is booted in to memory, this is a clean boot, because with the iso on the DVD can not be tampered with, but someone who has hacked your modem, can target your IP and can place a keylogger in the RAM memory, side-by-side of the OS, does not necessarily need to know zero-day-exploits of Debian (if there are any). Is that correct?

Moreover the trick, once known and automated, can be repeated every time you boot from the Debian Live DVD?

View 14 Replies View Related

Debian :: Incorrect RAM Memory Display ?

Aug 14, 2009

I have this issue, with Lenny 2.6.26-2-486, that the Gnome 2.22.3 System Monitor displays only 885.0 MiB of the total 2048 memory I have installed on my system.

View 2 Replies View Related

Debian :: Install Lenny From A Usb Memory?

Mar 19, 2010

Today I installed Lenny on a new server. The server didn't have any CD-Rom, so I tried putting the net install on a memory stick using unetbootin. The install went fine, but the problem was that the memory stick became sda and two SATA disks in the server became sdb and sdc.When I then tried to remove the stick, the SATA disks became sda and sdb, and it would not boot, because it had written the MBR on the stick.It hurried a little bit, so I had to take out a CD player from another computer, and connect it inside the server to get Lenny installed.But it would be cool if it was possible to install with the stick. And no more waste of CD-Rom players that will be used only once.

View 1 Replies View Related

Programming :: Memory Leaks - Glibc Detected - ./SuffixTree: Malloc() - Memory Corruption - 0x00

Mar 21, 2011

I am new to C and linux. My code below does arbitary writes but I cant figure out where or how it does it.

I am calling the insertNode() function with seq = 'MISSISSPPI$' and alphabets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ$'

Code:

Weird behaviour I should mention is that when I check for NULL pointer in node->child[index], the unassigned values are not null anymore, they point to arbitary memory.

View 12 Replies View Related

OpenSUSE Install :: Virtual Memory / Resident Memory Of Server?

Feb 3, 2010

we found that if we use 'top' to show the memory usage of a server (SuSe Linux 10), we can get virtual memory usage as well as 'Resident memory' usage. For virtual mem or a particular process, it is around 1.1GB, which is large but for resident memory, it only consumes 300MB. Are there anyone who knows what the differences are? I would also like to know whether the difference (1.1GB - 300MB) = 800MB are actually available for use by other applications in the system.

View 1 Replies View Related

Ubuntu :: Memory Error When Installing Python - Cannot Allocate Memory

Apr 19, 2010

I get this error when I run "sudo apt-get install python-software-properties"

Preconfiguring packages ...
dpkg: unrecoverable fatal error, aborting:
fork failed: Cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)

I'm trying to install deluge via ssh and my vps has 512mb ram and is only using 11% of it prior to running the code.

View 2 Replies View Related

Programming :: Write A Script That Can Show Me Total Memory Vs Used Memory?

Apr 13, 2010

How do I write a script for my Linux that can show me total memory vs used memory and have it email me results if it's over 70 percent?

View 2 Replies View Related

Hardware :: Why Dmesg / Grep Memory Gives Two Different Physical Memory Amounts

Oct 20, 2010

I am monitoring physical memory in a server I administer, and my hardware provider told me they had increased physical memory size to 4Gb... However, using several tools (free -m; top; dmesg | grep Memory; grep MemTotal /proc/meminfo I discovered that I actually have 3Gb, not 4... But, my doubt comes from the fact that dmesg | grem Memory tells me I have 3103396k/4194304k available The first number is effectively 3Gb, but the second one, is 4! so, why I am looking at this two different numbers?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved