Visit Our UNIX and Linux User Community


Usage of /var/tmp/ directory on Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Usage of /var/tmp/ directory on Solaris 10
# 1  
Old 12-12-2007
Usage of /var/tmp/ directory on Solaris 10

Hi All,

I have some threaded applications. Design of the application is such that one thread will decode some data and put it in data structure, And main thread will wait for another child threads pick up the decoded data. The data will be large decoded files.

Once decoded data is picked by child threads, They will set some flags.

main thread will be contineously checking for flags set are not and sleeping.

We also uses some third party tools such as nokalva compiler.

When I do truss on the process it is showing

13567/2: open(0x000D21C4, 01401, 0666) = 6
***line deleted by reborg***
13567/2: llseek(6, 0, 1) = 0
13567/2: getpid() = 13567 [12037]
13567/2: lstat64(0x000A8388, 0xFEBFB780) Err#2 ENOENT
13567/2: 0x000A8388: "/var/tmp/uveQ.a4FA"
13567/2: open(0x000A8388, 01402, 0666) = 7
13567/2: 0x000A8388: "/var/tmp/uveQ.a4FA"13567/2: fstat64(7, 0xFEBFAA90) = 0
13567/2: d=0x04C80000 i=182351 m=0100644 l=1 u=308 g=205 sz=0
13567/2: at = Dec 12 11:49:41 IST 2007 [ 1197440381 ]
13567/2: mt = Dec 12 11:49:41 IST 2007 [ 1197440381 ]
13567/2: ct = Dec 12 11:49:41 IST 2007 [ 1197440381 ]
13567/2: bsz=8192 blks=0 fs=ufs
13567/2: fstat64(7, 0xFEBFA938) = 0
13567/2: d=0x04C80000 i=182351 m=0100644 l=1 u=308 g=205 sz=0
13567/2: at = Dec 12 11:49:41 IST 2007 [ 1197440381 ]
13567/2: mt = Dec 12 11:49:41 IST 2007 [ 1197440381 ]
13567/2: ct = Dec 12 11:49:41 IST 2007 [ 1197440381 ]
13567/2: bsz=8192 blks=0 fs=ufs
13567/2: ioctl(7, 0x00005401, 0xFEBFAA1C) Err#25 ENOTTY
13567/2: fstat64(6, 0xFEBFB6D0) = 0
13567/2: d=0x04C884D8 i=8265 m=0100644 l=1 u=308 g=205 sz=0
13567/2: at = Dec 12 11:49:40 IST 2007 [ 1197440380 ]
13567/2: mt = Dec 12 11:49:40 IST 2007 [ 1197440380 ]
13567/2: ct = Dec 12 11:49:40 IST 2007 [ 1197440380 ]
13567/2: bsz=8192 blks=0 fs=lofs
13567/2: fstat64(6, 0xFEBFB578) = 0
13567/2: d=0x04C884D8 i=8265 m=0100644 l=1 u=308 g=205 sz=0


We are nowhere using /var/tmp/ directory for writing temparory data.
Why it is using /var/tmp/ directory which is on disk. It might have used /tmp
instead of that, which much faster than /var/tmp/.

Please let me know, Does the thread at the time of sleep places its data in /var/tmp directory or what ?

Thanks in Advance.

--
Patil
# 2  
Old 12-12-2007
/var/tmp is designed to store "reboot persistent" temporary data. i.e. data that one may wan't to recover should the machine crash or is stopped because of a power outage, or data a program want to persist between successive runs.

Previous Thread | Next Thread
Test Your Knowledge in Computers #700
Difficulty: Medium
In the theory of Vernadsky, the noosphere is the fifth in a succession of phases of related to the development of the Earth.
True or False?

10 More Discussions You Might Find Interesting

1. HP-UX

Problems after deleting /var/tmp

Hi, To clear up the filesystem, I archived /var/tmp (forgot that this directory was important for crontab), and then deleted the directory itself. After that there were problems like crontab not accessible, certain ftp commands like mget not functioning, and worst there were some scripts which... (4 Replies)
Discussion started by: anaigini45
4 Replies

2. Red Hat

[Errno 22] invalid mode ('w') or filename: '//var/lib/yum/rpmdb-indexes/conflicts.tmp'

Can anyone help me with this error? sudo yum install perl-Gtk2-WebKit Loaded plugins: langpacks, presto, refresh-packagekit, versionlock Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package perl-Gtk2-WebKit.i686 0:0.09-1.fc15 will be installed -->... (0 Replies)
Discussion started by: cokedude
0 Replies

3. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

4. Solaris

urgent: single-user-mode, /var/tmp read-only

this is the situation: Power outage. Root mirror (svm). it goes to single-user-mode, asking for fsck. Fsck suceeds for one disk, but fail for the other. I can't use vi-editor, it says /var/tmp/Xz12a is a read-only file system. I need to break the mirror, there's no copy of... (2 Replies)
Discussion started by: Sun Fire
2 Replies

5. Linux

/var/tmp/slapd.log.swp delete?

Hi All, Can I delete the above file? It's big, about 1G. It's on a redhat ent 4 with ldap on it. Is that safe to delete? It wasn't been used for already a month and it's in the backup storage. Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

6. Solaris

permission of /var/tmp

what's the impact if I change /var/tmp's permission into 750? (7 Replies)
Discussion started by: a2156z
7 Replies

7. Red Hat

/tmp directory

i heard once that the /tmp directory was a ramfs (swap) that is cleared at reboot time, is this still the case in redhat EL 3 and 4 ? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

8. UNIX for Dummies Questions & Answers

default permission of /var/tmp in AIX

I'm getting an error when trying to vi my .profile. This is the first time I've logged onto this machine and apparently its rarely logged into. I'm assuming from the error that it's a permissions problem in the /var/tmp directory. Can anyone assist? $ uname -a AIX machine 1 5 000D96BF4C00 $... (3 Replies)
Discussion started by: dangral
3 Replies

9. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies

10. UNIX for Advanced & Expert Users

Process responsible for filling up /var/tmp

Hi, Help ! - I have a process which I cannot find that is writing to /var/tmp every 10 minutes and filling up my partition, it is also filling up my wtmpx file. I have some software error correction for a faulty DIMM at the moment - is this likely to be causing this as well as over-loading my... (3 Replies)
Discussion started by: Mal
3 Replies

Featured Tech Videos