Sponsored Content
Full Discussion: core files
Top Forums UNIX for Dummies Questions & Answers core files Post 2929 by Vodor on Monday 11th of June 2001 11:34:37 AM
Old 06-11-2001
Question core files

ok heres a question, Smilie well obviously

i have here my old old motorola system V/88

in my /usr/adm folder i have a file called kernelcore which is 16mb (the computer has 16mb ram too), we believe this is the contents of our ram when the system crashed back in feb last year!
Is it save to delete this file? core files are usually backups for when things crash arnt they?

and another file, pacct is also in the /usr/adm folder, this ones 25mb, someone did mention to me that it might be some kind of accounting thing.

the poor computer only has 500mb hard disk space and we are struggleing to keep 40mb free!

Please help me,

thanks
Ian Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

What can be done with core files???

please help me, what can i do with the bountiful amount of core files our systems seem to have on occassional basis?? how do I analyze it and determine why the core file was dumped by the application that dumped it. the operating systems we use are solaris, DG-UX and linux red hat systems. (5 Replies)
Discussion started by: TRUEST
5 Replies

2. UNIX for Dummies Questions & Answers

system log files and core files?

Solaris v5.6 What log files should be checked out as part of your sys admin daily routine? I've printed out my syslog.conf file, and looked in /var/log and found authlog, syslog, and POPlog. I know of /var/adm/messages. What others should I be looking for? I know of the "find" command. I... (8 Replies)
Discussion started by: Westy564
8 Replies

3. UNIX for Advanced & Expert Users

evaluating core files

Does anyone know any tools or how to really get something out of a core file. I can use strings and look for certain things like out of memory. I am trying to use adb but I can't make heads or tails from it. I guess it is my lack of know how with the adb/mdb debugger. anything would... (3 Replies)
Discussion started by: Gary Dunn
3 Replies

4. UNIX for Dummies Questions & Answers

rm core files and pattern matching

Hi, I am trying to delete a load of core files, but make sure I only delete core files. The system I am using has many files with core in the name, so I obviously can not simply search for "core". I have tried using the 'find' command with pattern matching via , and know that his is the way... (3 Replies)
Discussion started by: littleIdiot
3 Replies

5. UNIX for Dummies Questions & Answers

hp ux core files

what are core files?? Can I safely delete them??? Please, help (2 Replies)
Discussion started by: ldaliosmane
2 Replies

6. UNIX for Dummies Questions & Answers

Cleaning core files

Hello *! Just a short question. Where on the system i can find core files. I have one SUN server (Solaris 8) and from time to time I must clean core files on it. But i am not sure where i can find those files. Thank you in advance. :) (5 Replies)
Discussion started by: ghost01
5 Replies

7. Solaris

core files not getting generated

Hi, We have an application ASPA . The application related processes are running in /ASPA/bin directory . now whenever a process terminates abruptly , a core file should be generated (correct me if i am wrong) in the /ASPA/bin directory . But i am not able to see any such files . The... (4 Replies)
Discussion started by: asalman.qazi
4 Replies

8. UNIX for Dummies Questions & Answers

How to know where the core files come from?

Hi, I am trying to use "find / -name core -print | xargs rm -f " ,but it would delete all core files including some core files we do not want to delete. I search privious posts,someone said "To check what a core file came from - use the file command" I used man page to search file command,but... (9 Replies)
Discussion started by: lemon_06
9 Replies

9. HP-UX

Read core files

In sun solaris whenever a jvm crashes we used to get the core file generated in binary format. We convert this core file to human readable format using pstack corefile >> log How can we convert the core file generated in HPUX to human readable format ? We dont have pstack either. (11 Replies)
Discussion started by: mohtashims
11 Replies

10. UNIX for Beginners Questions & Answers

Should i delete core files ?

Good morning, i need your help please By searching some of the largest files i found some core files that take up much space This is the command: find ./ -type f -name core -exec file {} \; Output: ./xptol/tel/tasacion/CIERR/exe/core: ELF 64-bit MSB core file SPARCV9 Version 1, from... (2 Replies)
Discussion started by: alexcol
2 Replies
dumpsys(8)						      System Manager's Manual							dumpsys(8)

NAME
dumpsys - Copies a snapshot of memory to a dump file SYNOPSIS
/sbin/dumpsys [-fisuz] [-r num] directory OPTIONS
Perform a full core dump -- the default is a partial dump. Ignore filesystem space limit warning -- copy the dump even if there is insuf- ficient filesystem space to save it. Only the portion of the dump that fits in the space available is copied. Set the expected dump com- pression ratio, defaulting to 0.5. A lower number means a better compression ratio is expected. Print the expected size of a full and partial dump file -- no dump is taken. Produce a non-compressed dump. Disable contiguous zero suppression. DESCRIPTION
The dumpsys command allows you to save a snapshot of the system memory to a dump file. There are times when system memory requires analy- sis but it may not be possible to halt the system and take a normal crash dump. Many problems can be resolved by taking a snapshot of the system memory while the system is running. The dumpsys command performs this function after it determines that there is enough file system space to save a core dump (see the following for information about minfree). Note that the system is running while dumpsys takes a snapshot of memory. This means that memory may be changing as it is copied. As a result, analysis of the resulting dump may show inconsistencies such as incomplete linked lists and partially zeroed pages. These are features caused by the transitory state of memory, caused by the working system. For this reason, some system problems cannot be detected by dumpsys and you must halt the system to take a normal crash dump. The dumpsys command writes information in directory. By default, directory is /var/adm/crash. The dump contains the contents of a portion of physical memory (or all of physical memory in the case of a full core dump) at the time of the command execution. The dumpsys command saves this information in the file vmzcore.n, or vmcore.n if compression is supressed. The command also copies the kernel executable image, usually /vmunix, to the vmunix.n file. You can then analyze the vmzcore.n and vmunix.n files (See the Kernel Debugging manual for information about analyzing core dump files.) The variable n indicates the number of the core file. For the first file, dumpsys creates the files vmunix.0 and vmcore.0. It then creates a file named directory/bounds and initializes the file with the value 1. For each succeeding dump, the dumpsys command uses the value in the directory/bounds file and then increments that value. By default dumpsys produces specially compressed dump files. The compression scheme used is not as powerful as compress or gzip but has the unusual feature that any byte in the file can be extracted without decompressing more than about 40K (typically less), even if the dump is very large. Tools such as dbx, ladebug, and kdbx, are able to read the compressed core files. The expand_dump utility is provided to con- vert compressed dumps into non-compressed dumps if you want to use an analysis tool that does not understand the compressed format. A traditional non-compressed dump can be generated using the -u switch. In this case the dump file will be named vmcore.n instead of vmz- core.n. It is possible that you may run dumpsys on a kernel that is not recent enough to support compressed dumps. If this happens, dumpsys will display a warning that the kernel is too old, but will then produce a non-compressed dump. The message is suppressed if -u is used. Con- versely, if you try to use older versions of dumpsys with a newer kernel a non-compressed dump is created without a message. The older dumpsys version will not recognize the -u or -r options. The text file directory/minfree specifies the minimum number of kilobytes that must be left on the filesystem containing directory after dumpsys copies the dump. By default, this file does not exist, indicating that the minimum is set to zero. To specify a minimum, create the file and store the number of kilobytes you want reserved in it.You can override the minimum check of directory/minfree using the -i option. The -s option displays the approximate number of disk blocks that full and partial dumps will require. The exact size can not be deter- mined ahead of time for many reasons, such as: By default, dumpsys optimizes disk space requirements by suppressing the writing of contigu- ous zeroes. System use of dynamic memory (malloc/free) changes while the system is in use. If the dump is to be compressed, the ratio by which it will be compressed is not known. The -z option disables contiguous zero suppression. A considerable amount of memory consists of contiguous zeros, that do not need to be written to disk. The dumpsys command optimizes disk space by default, but optimization of disk space causes longer execution times. If you specify the -z option, the run time can be 25% faster, although you will require more disk space. Note that if the dump is to be com- pressed, zero supression is not usedm therefore the -z option is meaningless. With the exception of the -s option, execution of dumpsys requires root (superuser) access rights. EXIT STATUS
Success -- dump taken General error -- dump failed Insufficient file system space -- dump failed FILES
Specifies the number of the next dump Specifies the minimum number of kilobytes to be left after dump files are written SEE ALSO
Commands: dbx(1), expand_dump(8), savecore(8) System Administration dumpsys(8)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy