Unix Web Hosting for Developers

Unix - Unix Like Operating Systems

Dumpon Now it’s time to tell the system

Filed under: Guide To FreeBSD — webmaster @ 5:33 pm

Dumpon Now it’s time to tell the system where to write the core dump this location is the dumpdev. FreeBSD uses the swap partition as the dump device, which is why it has to be slightly larger than your physical memory. (You can use a UFS partition, but after the crash it won’t be a usable UFS partition any more!) You can get the device name from /etc/fstab. Look for a line with a FSType entry of swap; the first entry in that line is the physical device name. For example, on my laptop, my swap field in /etc/fstab looks like this: ………………………………………………………………………………………. /dev/ad0s4b none swap sw 0 0 ………………………………………………………………………………………. Tell the system to use a dump device with dumpon(8), which must be set each time the system boots. Of course, as you might guess, there’s an rc.conf switch for this. My swap partition is /dev/ad0s4b, so I specify this as the dump device in /etc/rc.conf: ………………………………………………………………………………………. dumpdev=”/dev/ad0s4b” ………………………………………………………………………………………. Savecore Next, tell your system where to save the dump after the reboot using savecore(8). You can change the default, /var/crash, with rc.conf’s dumpdir setting. (This directory must exist; savecore will not create it!) As you become more experienced in saving panics, you may find that you need to adjust the core-saving behavior. Read savecore(8), and set any appropriate options in savecore_flags in /etc/rc. One popular flag is -z, which compresses the core file and can save some disk space. Savecore is now smart enough to automatically eliminate unused memory from the dump, which can save a lot of room. Upon a Crash If you’re in front of your computer when it crashes, you’ll see the panic message. If the system is set to reboot automatically, numbers will start to flow by, counting the megs of memory being dumped. Finally, the computer will reboot, fsck will run, and you can watch savecore copy the memory dump from swap to a file. If your system doesn’t reboot automatically, you’ll need to enter two commands after the panic, at the debugger prompt: panic to sync the disks and continue to start the reboot process. (FreeBSD supports many other debugging options, but you have to know how to use the kernel debugger to make use of them.) Dumps and Bad Kernels Some kernels just crash and die during boot, or won’t stay up long enough to fix a problem. In that case, you need to boot with a different kernel. 456

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost PHP Web Hosting services

33 Comments

  1. 5eedda664ccb6e303002…

    5eedda664ccb…

    Trackback by 5eedda664ccb6e303002 — October 2, 2007 @ 3:44 am

  2. avandia side effects…

    news…

    Trackback by avandia side effects — October 18, 2007 @ 10:40 pm

  3. clomid babies…

    news…

    Trackback by clomid babies — October 19, 2007 @ 6:16 pm

  4. prednisone side effects…

    news…

    Trackback by prednisone side effects — October 19, 2007 @ 6:20 pm

  5. buy vicodin…

    news…

    Trackback by buy vicodin — October 19, 2007 @ 6:25 pm

  6. side effects of zoloft…

    news…

    Trackback by side effects of zoloft — October 19, 2007 @ 6:30 pm

  7. protonix used for…

    news…

    Trackback by protonix used for — October 19, 2007 @ 7:00 pm

  8. acyclovir picture…

    news…

    Trackback by acyclovir picture — October 19, 2007 @ 7:06 pm

  9. cheap 2mg alprazolam…

    news…

    Trackback by cheap 2mg alprazolam — October 20, 2007 @ 6:18 pm

  10. buy adderall without a prescription…

    news…

    Trackback by buy adderall without a prescription — October 20, 2007 @ 6:23 pm

  11. seroquel and alcohol…

    news…

    Trackback by seroquel and alcohol — October 20, 2007 @ 7:03 pm

  12. lamisil digger doll…

    news…

    Trackback by lamisil digger doll — October 20, 2007 @ 7:07 pm

  13. prozac nation…

    news…

    Trackback by prozac nation — October 21, 2007 @ 6:59 pm

  14. gain weight on lexapro…

    news…

    Trackback by gain weight on lexapro — October 22, 2007 @ 6:28 pm

  15. fioricet and blood work…

    news…

    Trackback by fioricet and blood work — October 22, 2007 @ 6:34 pm

  16. drug flomax…

    news…

    Trackback by drug flomax — October 22, 2007 @ 7:06 pm

  17. synthroid problems…

    news…

    Trackback by synthroid problems — October 23, 2007 @ 6:41 pm

  18. norco world…

    news…

    Trackback by norco world — October 23, 2007 @ 6:47 pm

  19. fluoxetine hcl…

    news…

    Trackback by fluoxetine hcl — October 23, 2007 @ 7:22 pm

  20. vaspro ephedrine…

    news…

    Trackback by vaspro ephedrine — October 24, 2007 @ 6:33 pm

  21. buy norco online…

    news…

    Trackback by buy norco online — October 24, 2007 @ 7:40 pm

  22. meridia diet pill…

    news…

    Trackback by meridia diet pill — October 25, 2007 @ 6:30 pm

  23. nexium side effects…

    news…

    Trackback by nexium side effects — October 25, 2007 @ 7:43 pm

  24. lorazepam side effects…

    news…

    Trackback by lorazepam side effects — October 25, 2007 @ 7:49 pm

  25. information on flexeril -muscle relaxer…

    news…

    Trackback by information on flexeril -muscle relaxer — October 26, 2007 @ 6:46 pm

  26. elavil 10mg…

    news…

    Trackback by elavil 10mg — October 26, 2007 @ 6:53 pm

  27. clomid success rates…

    news…

    Trackback by clomid success rates — October 26, 2007 @ 7:40 pm

  28. adderall abuse…

    news…

    Trackback by adderall abuse — October 26, 2007 @ 7:46 pm

  29. fentanyl vs oxycodone…

    news…

    Trackback by fentanyl vs oxycodone — October 27, 2007 @ 6:43 pm

  30. ativan drug information…

    news…

    Trackback by ativan drug information — October 27, 2007 @ 6:49 pm

  31. norvasc generic…

    news…

    Trackback by norvasc generic — October 27, 2007 @ 6:55 pm

  32. diflucan breathing difficulty…

    news…

    Trackback by diflucan breathing difficulty — October 27, 2007 @ 7:15 pm

  33. doxycycline dosage…

    news…

    Trackback by doxycycline dosage — October 27, 2007 @ 8:01 pm

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Unix Web Hosting