/tmp (swap) in 'lsof ' output

  • Permalink
  • submit to reddit
  • Email
  • Follow


Can please someone explain the meaning of /tmp (swap) in 'lsof'
output. What kind of open file descriptors are specified as /tmp
(swap)?

MyProc 26868 hawk   31u  VREG           0,2     8669 2426495367 /tmp
(swap)
MyProc 26868 hawk   32u  VREG           0,2     8777  736708121 /tmp
(swap)
MyProc 26868 hawk   34u  VREG           0,2     8669 2426595624 /tmp
(swap)
MyProc 26868 hawk   35u  VREG           0,2     8777  736707881 /tmp
(swap)
MyProc 26868 hawk   36u  VREG           0,2     8669 2426595672 /tmp
(swap)
MyProc 26868 hawk   38u  VREG           0,2     8669  736708073 /tmp
(swap)
MyProc 26868 hawk   41u  VREG           0,2     8777    4051096 /tmp
(swap)

When our application runs for a long time, we recieve "Too many open
file descriptors" error. The number of /tmp (swap) reported by 'lsof'
is steadily growing upon execution of the application. What can cause
increase of /tmp (swap) open file descriptors?

Thank you,
Alona

0
Reply allab (41) 5/5/2007 1:57:08 AM

See related articles to this posting


Alona wrote:
> Can please someone explain the meaning of /tmp (swap) in 'lsof'
> output. What kind of open file descriptors are specified as /tmp
> (swap)?
> 
> MyProc 26868 hawk   31u  VREG           0,2     8669 2426495367 /tmp
> (swap)
> MyProc 26868 hawk   32u  VREG           0,2     8777  736708121 /tmp
> (swap)
> MyProc 26868 hawk   34u  VREG           0,2     8669 2426595624 /tmp
> (swap)
> MyProc 26868 hawk   35u  VREG           0,2     8777  736707881 /tmp
> (swap)
> MyProc 26868 hawk   36u  VREG           0,2     8669 2426595672 /tmp
> (swap)
> MyProc 26868 hawk   38u  VREG           0,2     8669  736708073 /tmp
> (swap)
> MyProc 26868 hawk   41u  VREG           0,2     8777    4051096 /tmp
> (swap)
> 
> When our application runs for a long time, we recieve "Too many open
> file descriptors" error. The number of /tmp (swap) reported by 'lsof'
> is steadily growing upon execution of the application. What can cause
> increase of /tmp (swap) open file descriptors?
> 
> Thank you,
> Alona
> 

Failure to close files when you are through with them?

0
Reply Richard 5/5/2007 11:21:53 AM

On May 5, 7:21 am, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:
> Alona wrote:
> > Can please someone explain the meaning of /tmp (swap) in 'lsof'
> > output. What kind of open file descriptors are specified as /tmp
> > (swap)?
>
> > MyProc 26868 hawk   31u  VREG           0,2     8669 2426495367 /tmp
> > (swap)
> > MyProc 26868 hawk   32u  VREG           0,2     8777  736708121 /tmp
> > (swap)
> > MyProc 26868 hawk   34u  VREG           0,2     8669 2426595624 /tmp
> > (swap)
> > MyProc 26868 hawk   35u  VREG           0,2     8777  736707881 /tmp
> > (swap)
> > MyProc 26868 hawk   36u  VREG           0,2     8669 2426595672 /tmp
> > (swap)
> > MyProc 26868 hawk   38u  VREG           0,2     8669  736708073 /tmp
> > (swap)
> > MyProc 26868 hawk   41u  VREG           0,2     8777    4051096 /tmp
> > (swap)
>
> > When our application runs for a long time, we recieve "Too many open
> > file descriptors" error. The number of /tmp (swap) reported by 'lsof'
> > is steadily growing upon execution of the application. What can cause
> > increase of /tmp (swap) open file descriptors?
>
> > Thank you,
> > Alona
>
> Failure to close files when you are through with them?- Hide quoted text -
>
> - Show quoted text -

Why /tmp (swap) instead of a file name, for example /tmp/
Log_12345.log? No files are found in /tmp.

0
Reply Alona 5/5/2007 12:20:20 PM

On 5 May 2007 05:20:20 -0700, Alona said something similar to:
>  On May 5, 7:21 am, "Richard B. Gilbert" wrote:
> > Alona wrote:
> > > When our application runs for a long time, we recieve "Too many open
> > > file descriptors" error. The number of /tmp (swap) reported by 'lsof'
> > > is steadily growing upon execution of the application. What can cause
> > > increase of /tmp (swap) open file descriptors?
> >
> > Failure to close files when you are through with them?- Hide quoted text -
> >
> 
>  Why /tmp (swap) instead of a file name, for example /tmp/
>  Log_12345.log? No files are found in /tmp.

Directories are essentially files.  Rather special files mind, but still
files.  Your application is probably trying to list files in tmp via
opendir(3), readdir(3), etc. but failing to call closedir(3) when it's
done.  A few iterations of this and you've got a bunch of open file
descriptors, all referencing /tmp.
0
Reply Mike 5/5/2007 11:21:37 PM
comp.unix.solaris 25774 articles. 87 followers. Post

3 Replies
191 Views

Similar Articles

[PageSpeed] 10


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

/tmp (swap) in 'lsof ' output
Can please someone explain the meaning of /tmp (swap) in 'lsof' output. What kind of open file descriptors are specified as /tmp (swap)? MyProc 26868 hawk 31u VREG 0,2 8669 2426495367 /tmp (swap) MyProc 26868 hawk 32u VREG 0,2 8777 736708121 /tmp (swap) MyProc 26868 hawk 34u VREG 0,2 8669 2426595624 /tmp (swap) MyProc 26868 hawk 35u VREG 0,2 8777 736707881 /tmp (swap) MyProc 26868 hawk 36u VREG 0,2 8669 2426595672 /tmp (swap) MyProc 26868 hawk 38u VREG 0,2 8669 736708073 /tmp (swap...

/tmp (swap) in 'lsof' output
Can please someone explain the meaning of /tmp (swap) in 'lsof' output. What kind of open file descriptors are specified as /tmp (swap)? MyProc 26868 hawk 31u VREG 0,2 8669 2426495367 /tmp (swap) MyProc 26868 hawk 32u VREG 0,2 8777 736708121 /tmp (swap) MyProc 26868 hawk 34u VREG 0,2 8669 2426595624 /tmp (swap) MyProc 26868 hawk 35u VREG 0,2 8777 736707881 /tmp (swap) MyProc 26868 hawk 36u VREG 0,2 8669 2426595672 /tmp (swap) MyProc 26868 hawk 38u VREG 0,2 8669 736708073 /tmp (swap...

/tmp (swap) in 'lsof' output #2
Can please someone explain the meaning of /tmp (swap) in 'lsof' output. What kind of open file descriptors are specified as /tmp (swap)? MyProc 26868 hawk 31u VREG 0,2 8669 2426495367 /tmp (swap) MyProc 26868 hawk 32u VREG 0,2 8777 736708121 /tmp (swap) MyProc 26868 hawk 34u VREG 0,2 8669 2426595624 /tmp (swap) MyProc 26868 hawk 35u VREG 0,2 8777 736707881 /tmp (swap) MyProc 26868 hawk 36u VREG 0,2 8669 2426595672 /tmp (swap) MyProc 26868 hawk 38u VREG 0,2 8669 736708073 /tmp (swap...

FBSD swap, Solaris swap on /tmp
Hi all, I have been a long time user of FBSD. Swap on FBSD is not a mounted filesystem. Unlike Solaris where it is usually mounted as /tmp. Is swap on FBSD a filesystem or is it just a raw slice ? Seems odd to me that Solaris mounts it as a filesystem. Anybody can mistakenly copy things to the /tmp directory and run the box out of swap. On 18 Dec 2006 04:56:43 -0800 "Brent Bolin" <brent.bolin@gmail.com> wrote: > Hi all, > > I have been a long time user of FBSD. > > Swap on FBSD is not a mounted filesystem. Unlike Solaris where it i...

swap and /tmp
How can I increase the size of /tmp in Solaris 8? I am a bit confused about the relationship between swap space and /tmp. Does adding more swap space increase the size of /tmp in terms of files that can be stored in it? JL (SUN1:root)--> df / (/dev/dsk/c0t0d0s0 ): 602022 blocks 310160 files /usr (/dev/dsk/c0t0d0s4 ): 6149450 blocks 478096 files /proc (/proc ): 0 blocks 7805 files /dev/fd (fd ): 0 blocks 0 files /etc/mnttab (mnttab ): 0 blocks 0...

lsof output
Hi, I can't find information about the at-sign (@) signification present on lead of some values in the NAME field of a lsof output. It seems to appear only in association to Unix-domain sockets. For example: [...] Xorg 4219 root 18u unix 0xffff8801187b5140 0t0 502876 @/tmp/.X11-unix/X0 [...] Thanks. In article <508ecdaf$0$1858$426a74cc@news.free.fr>, yoxoman <invalid@invalid.invalid> wrote: > Hi, > > I can't find information about the at-sign (@) signification present on > lead of some values in the NAM...

Questions regarding swap and /tmp
As you read this, please keep in mind that I am not a sys admin. I'm a lowly developer who is the only one in this small shop who knows anything about Unix (and that was a few years ago). I am configuring our stand-alone Sun to accomodate Oracle 9i. One of the requirements is that the swap size be the same or greater than the RAM (1 GB). The other requirement is that /tmp have at least 400MB of space available and that /tmp does not use a device of swap. After running the swap -l command, I can see that my swap is not large enough (it's about 500 MB). swap -l swapfile ...

swap (/tmp) is getting filled up
We have set the swap as with a space of 3.3G and /tmp is mounted on swap. /tmp is always getting filled up and if I do a du -sk on /tmp, it shows only 790K as used. So, I did: lsof /tmp and it shows a bunch of processes with open files on it. Part of the output for lsof /tmp is shown below: Why are all these program keep the files open on swap. How can I avoid the "swap getting filled up" problem? COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME csh 663 root cwd VDIR 0,1 842 238760541 /tmp tnslsnr 3129 oracle 1w VREG 0,1 185...

Why is /var/tmp not mounted on swap?
Why is /var/tmp not mounted on swap like /tmp? /var/tmp seems to accumulate old files and could also be used to fill /. .. On 29 Aug 2006 06:49:52 -0700 "greek_philosophizer@hotmail.com" <greek_philosophizer@hotmail.com> wrote: > Why is /var/tmp not mounted on swap like /tmp? Because it would then also encroach on, and be limited to, the size of virtual memory. Now it can be used to hold temporary files of arbitrary size (at least if /var is adequately dimensioned). > /var/tmp seems to accumulate old files So does /tmp if you don't reboot often. If it bothers ...

Confusion between swap and /tmp filesystem
Hey gurus, At the time of the OS installation I created / swap (physical memory size) /tmp /var /apps /home The question is that if there a problem to have a /tmp filesystem defined at the time of the OS install. What I have been told from another admin is that /tmp is a part of the swap filesystem and is automaticall created and is available for use. So if you define one more /tmp filesystem the server might work but it is not a best practice for Solaris 8 or Solaris 10. Can anyone validate this information for me please? Also, I am receiving some sendmail related error saying something rel...

lsof output different in script?
Hi I'm having some issues with the following problem and wondered if anyone can see the error? We are using HACMP 5.1 and alias and since we're splitting our services we need to work out which IP the user attached to to setup some environment variable prior to running the application. Now lsof produces the output I need fine at the command line but when executed from within a script it provides different information, any ideas why this is occurring? Output from cmd and script: pluto_eur1:(/usr/local/bin)# ls -l test.sh -rwxrwsrwx 1 root system 24 Dec 06 15:09 test.sh ...

swap() function without tmp
Hi, I found the swap() function without a temporary variable. void swap(int *x, int *y){ *x ^= *y; *y ^= *x; *x ^= *y; } So, I wrote the next code that exchange the double. void dswap(double *x, double *y){ *(int *)x ^= *(int *)y; *((int *)x + 1) ^= *((int *)y + 1); *(int *)y ^= *(int *)x; *((int *)y + 1) ^= *((int *)x + 1); *(int *)x ^= *(int *)y; *((int *)x + 1) ^= *((int *)y + 1); } But it is dirty. Does it rewrite more simply? --- Regards, OSHIMA On 13 May 2004 19:57:29 -0700 shunsuke_oshima@mail.goo.ne.jp (OSHIMA) wrote: > void swap(...

Very strange ls output in /tmp
Could anybody possibly explain what is going on here? doing an ls in /tmp results in bits of script appearing! and non- existent files appearing, and dir's listing as files etc... here the output follows. The interesting files are deleteme and invs. deleteme doesnt exist, invs is a dir. and where is the script stuff coming from? mre background to follow after output; loncmxs1018:/tmp> ls 4330-10.NODES 5300-03.NODES deleteme rc= if [ -gt 0 ] then print...

shared memory and /tmp (swap) on Solaris8
Hello All, Our application allocates and, we believe, properly deallocates shared memory using System V API (shmget(), shmat(), shmdt(), shmctl()). After shared memory has been released, 'ipcs -m' does not show any shared memory segments that belong to our application, but 'lsof -p <pid>' shows /tmp (swap) associated with the process. Please explain what is going on. Thanks, Alona ...

shared memory adn /tmp (swap)
Hello All, Our application allocates and, we believe, properly deallocates shared memory using System V API (shmget(), shmat(), shmdt(), shmctl()). After shared memory has been released, 'ipcs -m' does not show any shared memory segments that belong to our application, but 'lsof -p <pid>' shows /tmp (swap) associated with the process. Please explain what is going on. Thanks, Alona Alona <allab@sympatico.ca> wrote: > Hello All, > Our application allocates and, we believe, properly deallocates shared > memory using System V API (shmget(), shmat(), shmdt...

Unexpected output of lsof in Solaris 10
Hi, I use the Sun Freeware package lsof_0606-4.77-sol10-sparc-local on a Solaris 10 8/07. I have an application process which uses the TCP port 34626. I mentioned that the commands netstat and pfiles report this port number but lsof doesn't do it. root@sotso004# netstat -an | grep 34626 128.87.45.104.34626 128.87.43.90.46976 32768 0 49640 0 ESTABLISHED 128.87.45.104.34626 128.87.43.90.47046 32768 0 49640 0 ESTABLISHED *.34626 *.* 0 0 49152 0 LISTEN root@sotso004# pfiles 2385 [...] 29: S_IFSOCK mode:0666 dev:317,0 ino...

/tmp (swap) getting filled up often
/tmp is getting filled up 100% very often - there are not many files on /tmp; So, the machine gets stuck. When I do a fuser -c /tmp, I usually get a long list of files which are open. When I kill those processes, everything gets back to normal. Have anybody experienced this problem? "Joe Philip" <joe.philip@verizon.net> writes: > /tmp is getting filled up 100% very often - there are not many files on > /tmp; So, the machine gets stuck. > > When I do a fuser -c /tmp, I usually get a long list of files which are > open. When I kill those processes, everything...

Strange output of `swap -s'
We've got a 6 partition Origin 3800 system with 1 gig of swap space: $swap -l lswap path dev pri swaplo blocks free maxswap vswap 1 /dev/swap 0,838 0 0 2097152 2097152 2097152 0 but when I use the -s option to swap, the numbers are much larger: $swap -s total: 0.00k allocated + 11.15g add'l reserved = 11.15g bytes used, 21.68g bytes available Any idea what's causing the massive discrepancy in reported numbers? mta61@yahoo.com (Mark Andrews) writes: > $swap -s > total: 0.00k allocated + 11.15g add'l reserv...

why the difference in swap value for vmstat output
All, I am looking into a performance issue in one of our servers and need some help to understand the output of vmstat and top as I am now totally confused. The machine is a Sun Enterprise Server running Solaris 8, with 40G of RAM and 56 G of disk swap, which means I have about 90 G of swap. Checking the output of vmstat -p 5, I have the following, I understand, the swap + free - RAM used by kernel, but I expect a. swap + free will be close to 90G, but 57 + 3 is close to 60G, can anyone explain why does my swap go ? b. I understand the swap or free will be changed, but I explect to total o...

What does mean indode-sz from lsof output ?
Hi, From my atsar output (debian system): 00:00:01 superb-sz inode-sz file-sz dquota-sz flock-sz _curmax_ 00:10:01 0/0 13298/3324 4544/90742 0/0 21/0 From man atsar: inode-sz The current and maximum occupation of the collection of incore-inodes maintained by the kernel. One entry is needed for every disk-file which is currently open (at least once). file-sz The current and maximum occupation of the collection of open-file entries maintained by the kernel. One entry is needed for every open-request for a disk-file. So...

shared memory and /tmp (swap) on Solaris8
Hello All, Our application allocates and, we believe, properly deallocates shared memory using System V API (shmget(), shmat(), shmdt(), shmctl()). After shared memory has been released, 'ipcs -m' does not show any shared memory segments that belong to our application, but 'lsof -p <pid>' shows /tmp (swap) associated with the process. Please explain what is going on. Thanks, Alona Alona <allab@sympatico.ca> writes: > Our application allocates and, we believe, properly deallocates > shared > memory using System V API (shmget(), shmat(), shmdt(), shmct...

Swap usage and free command output
Hi, On one RHEL 4, free -m gives the following output: free -m total used free shared buffers cached Mem: 2026 2001 24 0 3 1352 -/+ buffers/cache: 645 1380 Swap: 4111 921 3190 My understanding when reading the Red Hat documentation was that the important FREE figures concerning the RAM was 1380 since the CACHED memory could be given back by the OS should the need arise. But then, why almost 1GB of swap is in use? Why does the system keeps 1352MB of cached data? Swap activity: 01:40:0...

Odd Output From lsof (lots of open files)
We are starting to get tcp timeouts connecting to an E4500 running Solaris 9 64-bit and Oracle 9.2.0.4 64-bit. I examined lsof and noticed about 2600 entries of this: (there were over 8000 open files total) oracle 3164 oracle 277u unknown file system type (vxfs), v_op: 0x783f7b90 oracle 3164 oracle 278u unknown file system type (vxfs), v_op: 0x783f7b90 oracle 3164 oracle 279u unknown file system type (vxfs), v_op: 0x783f7b90 oracle 3164 oracl...

swap rows and columns in select query output
Is it possible to swap rows and columns in select query output so that each record's data is displayed in a column? I want to collect data each day and display it in a query with each day's date along the top row and the data items below it. This would give a better appreciation of changes over time. I apologise if I'm missing something obvious. Phil "Phil" <pbeeby@med.usyd.edu.au> wrote in message news:1163995802.286995.205280@b28g2000cwb.googlegroups.com... > Is it possible to swap rows and columns in select query output so that > each record's data...

Problem with command column width from lsof output
Hi, I have read 14.7 and 14.6 in lsof faq. I'm running on Debian sid. I try: # lsof +c 16 -Fc lsof: +c 16 > what system provides (15) Can my system increase this limit (+c 0 didn't work)? why lsof cannot return the full command ? Thank you ...