Sponsored Content
Full Discussion: RHEL Memory issue
Operating Systems Linux Red Hat RHEL Memory issue Post 302977028 by bakunin on Monday 11th of July 2016 10:10:12 AM
Old 07-11-2016
Quote:
Originally Posted by baluchen
But i can clearly notice performance issue when the "free" memory on first line goes down.
I don't believe that the performance degradation has anything to do with the "free" (which in fact is: unused) memory going down. The reason for it going down is simply because at start time the system has no idea what to put into the cache. Over time it "learns", by loading disk content to memory, which contents are used more often and therefore puts them into cache. This does not slow down operations but in fact speeds them up!

Your problem may come from several reasons: most likely is a "memory sink", which is a pure application problem. The application requests memory dynamically from the system and the system fulfills this request. But the application (being written poorly) doesn't keep track of this memory, so, instead of reusing it or giving it back it requests another chunk of memory from the system - and so on, ad infinitum. Because the systems memory is limited this can't go on forever and over time the systems resources are exhausted. A prominent instance for this happening was/is Firefox. If you run it for several weeks you will notice that it has allocated several GB of memory even if you have only one (empty) window open.

The only rememdy for this (if you can't fire the programmer for sloppy work and then get another one to change the application, which would be the best course of action) is to restart the application (not the system!) at certain intervals. Which these intervals are depends on the application and how rapidly it gobbles up the memory.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Memory Issue

Hi There, I have upgraded the DELL poweredge 2600 server memory from 2GB to 4GB. However, the memory only showed at 2GB of utilization. How to make sure that the server is full utilize of 4GB of memory. Is there the Virtual memory need to be reconfigure as this server is run on windows 2000 and... (2 Replies)
Discussion started by: vestro
2 Replies

2. Red Hat

RHEL Installation issue.

Hi Gurus I am trying to install RHEL linux enterprise Edition v5 on a Dell Optiplex 320 desktop. After the Grub menu,i get the error,Kernel could not be loaded. I am a newbie in linux and would appreciate any help in moving forward. Thanks HG (1 Reply)
Discussion started by: Hari_Ganesh
1 Replies

3. Red Hat

Time Sync issue on RHEL 5.3

Hi, My Linux VMs are running on citrix XEN.Somehow the time drift is too high (going very fast). Even if the correct time configured using date -s command, for every 1 hr it is differing almost 5 - 10 mins. Tried configuring ntpd (local NTP server) and still it is not synchronized. Machine... (2 Replies)
Discussion started by: uday123
2 Replies

4. Red Hat

iSCSI issue on RHEL 5

Hello Friends, I am facing issue with the iSCSI configuration on some of our RHEL 5 servers, When I restart the iSCSI service, it triggers the RHEL server reboot. Could you please help me with this issue. Below are the system details : uname -a : Linux za-rac-prd-01.abc.local... (2 Replies)
Discussion started by: Jeevanm
2 Replies

5. Red Hat

Best way to monitor use of memory resources for an RHEL instance

I wanted to know what is the best way to monitor use of memory on an RHEL server. We have 16 GB of memory for the RHEL instance but the usage at any time is more than 99%. I use /proc/meminfo on the server to check memory. I hope, my question is clear that what is the best way to monitor use of... (2 Replies)
Discussion started by: RHCE
2 Replies

6. Red Hat

Logrotate issue in RHEL

Hi, I have a requirement to compress logs that generate daily. Below is the logrotate configuration for this But for some kind of reason the logs are not getting compressed daily. When tried to execute the logrotate manually with -d it says "log does not need rotating." The path... (0 Replies)
Discussion started by: EmbedUX
0 Replies

7. Red Hat

Memory Issue

I could not find what is consuming the memory, generated DSET reports and NO hardware wise memory issue. 64 GB RAM on a server yet all I could see is a very limited memory available. I am not sure if I am reading this correct or not. I have used free -t -m and cat /proc/meminfo (results below)... (3 Replies)
Discussion started by: rsheikh01
3 Replies

8. Linux

Installation issue RHEL 6.5 on SAN

HI All I am facing issue in installation of Red Hat 6.5 on SAN.. i am having a partion of 2 TB in my SAN and i am installing the operating system after completed the installation it not booting and giving the error. (2 Replies)
Discussion started by: deviltech
2 Replies

9. Shell Programming and Scripting

AIX to RHEL migration - awk treating 0e[0-9]+ as 0 instead of string issue

Greetings Experts, We are migrating from AIX to RHEL Linux. I have created a script to verify and report the NULLs and SPACEs in the key columns and duplicates on key combination of "|" delimited set of big files. Following is the code that was successfully running in AIX. awk -F "|" 'BEGIN {... (5 Replies)
Discussion started by: chill3chee
5 Replies

10. UNIX for Advanced & Expert Users

RHEL 5.11 - gid issue

Hello folks, I am facing a weird issue on one of the red hat linux 5 box. There is an oracle id which i want to change the primary group. Currently the primary group id is 16600, I did changed it to 16601 using below command: usermod -g 16601 oracle But it did not changed. I have tried... (3 Replies)
Discussion started by: snchaudhari2
3 Replies
directio(3C)						   Standard C Library Functions 					      directio(3C)

NAME
directio - provide advice to file system SYNOPSIS
#include <sys/types.h> #include <sys/fcntl.h> int directio(int fildes, int advice); DESCRIPTION
The directio() function provides advice to the system about the expected behavior of the application when accessing the data in the file associated with the open file descriptor fildes. The system uses this information to help optimize accesses to the file's data. The direc- tio() function has no effect on the semantics of the other operations on the data, though it may affect the performance of other opera- tions. The advice argument is kept per file; the last caller of directio() sets the advice for all applications using the file associated with fildes. Values for advice are defined in <sys/fcntl.h>. DIRECTIO_OFF Applications get the default system behavior when accessing file data. When an application reads data from a file, the data is first cached in system memory and then copied into the applica- tion's buffer (see read(2)). If the system detects that the application is reading sequentially from a file, the system will asynchronously "read ahead" from the file into system memory so the data is immediately available for the next read(2) operation. When an application writes data into a file, the data is first cached in system memory and is written to the device at a later time (see write(2)). When possible, the system increases the performance of write(2) operations by cacheing the data in memory pages. The data is copied into system memory and the write(2) operation returns immediately to the application. The data is later written asynchronously to the device. When possible, the cached data is "clustered" into large chunks and written to the device in a single write operation. The system behavior for DIRECTIO_OFF can change without notice. DIRECTIO_ON The system behaves as though the application is not going to reuse the file data in the near future. In other words, the file data is not cached in the system's memory pages. When possible, data is read or written directly between the application's memory and the device when the data is accessed with read(2) and write(2) operations. When such transfers are not possible, the system switches back to the default behav- ior, but just for that operation. In general, the transfer is possible when the application's buffer is aligned on a two- byte (short) boundary, the offset into the file is on a device sector boundary, and the size of the operation is a multiple of device sectors. This advisory is ignored while the file associated with fildes is mapped (see mmap(2)). The system behavior for DIRECTIO_ON can change without notice. RETURN VALUES
Upon successful completion, directio() returns 0. Otherwise, it returns -1 and sets errno to indicate the error. ERRORS
The directio() function will fail if: EBADF The fildes argument is not a valid open file descriptor. ENOTTY The fildes argument is not associated with a file system that accepts advisory functions. EINVAL The value in advice is invalid. USAGE
Small sequential I/O generally performs best with DIRECTIO_OFF. Large sequential I/O generally performs best with DIRECTIO_ON, except when a file is sparse or is being extended and is opened with O_SYNC or O_DSYNC (see open(2)). The directio() function is supported for the NFS and UFS file system types (see fstyp(1M)). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
fstyp(1M), mmap(2), open(2), read(2), write(2), fcntl.h(3HEAD), attributes(5) WARNINGS
Switching between DIRECTIO_OFF and DIRECTIO_ON can slow the system because each switch to DIRECTIO_ON might entail flushing the file's data from the system's memory. SunOS 5.11 9 Apr 2003 directio(3C)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy