What do Solaris pmap entries dev: and ino: represent?

1

Running the pmap command on a process in Solaris, I see certain processes have blocks of memory with tags like the following:

dev:337,2 ino=2433431

What do the dev and ino represent? My assumption is device and inode, but that is just a guess. Is there a way to reverse-debug what this memory is?

heavydutydev

Posted 2011-12-06T00:18:50.220

Reputation: 13

Answers

2

These are probably /var/run mmaped files. I just checked and found for example /var/run/tzsync being mmaped by many processes. That particular file allows timezone patches not to require a reboot to be effective.

jlliagre

Posted 2011-12-06T00:18:50.220

Reputation: 12 469

How did you determine which file was being mmaped? Is there a way to do a reverse look-up with the device number and inode number? I tried 'find / -inum <ino>', but didn't have any luck. – heavydutydev – 2011-12-06T16:31:45.390

The tzsync file was reported by pmap, pfiles and find -inum. The latter should find it at least under /proc/<pid>/fd. – jlliagre – 2011-12-07T02:22:45.710