11da9
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I've recently set up a VPS at rootbsd. I set it up with GPT+ZFS almost the same way as my old physical machine (the difference is that I'm not using a mirror for the tank, since the underlying storage has redundancy, and the virtual disk is much smaller than the physical disk I had before): the only things on the disk are the freebsd-boot partition and the tank. Swap is provided on a zvol.
The system only has 768 MB of RAM, but this page has some tuning that suggests that it ought to work. Under load, the system winds up using a couple dozen MB of swap, but then all of a sudden it locked up with repeated messages: Code:
swap_pager: indefinite wait buffer: bufobj: Is there still problems swapping to a zvol? What can I do to make it more reliable? |
|
#2
|
||||
|
||||
|
You forgot to mention FreeBSD version....
I didn't have problems with swapping.... Once I made bug in a program, that filled ram and swapped 500MB in a about minute until I reset PC manuallyCheck this, maybe you're missing something related to swap itself: http://wiki.bsdroot.lv/freebsd:quick...te_swap_on_zfs Or maybe it's memory amount issue or old FreeBSD release
|
|
#3
|
||||
|
||||
|
Sorry I forgot to mention it - 8.1-RELEASE.
|
|
#4
|
||||
|
||||
|
I checked out the page you referenced. Turning checksums off is a good idea. I'll do that. I also read elsewhere that creating the zvol with a 4k block size was a good idea.
The example also creates a traditional swap partition. I didn't do that, and now it would be a day of work to repartition the drive. But if you're not usig that swap partition, then your results should still be valid. But this is a very RAM constrained (virtual) machine. I wonder if that's the difference. |
|
#5
|
|||
|
|||
|
Some people say enabling compression on the swap volume helps as well.
|
|
#6
|
||||
|
||||
|
That's counter-intuitive. Do you have any references that explain why?
|
|
#7
|
||||
|
||||
|
On one hand you need to read less data... on slow disks and fast cpu, this could be beneficial (perfect for floppy disks
).On other hand you need to decompress data, which means, more cpu cycles, which means bigger latency. |
|
#8
|
|||
|
|||
|
Was this issue resolved? I'm having the same problem.
Last edited by DutchDaemon; June 14th, 2011 at 13:23. Reason: It's "I'm". |
|
#9
|
||||
|
||||
|
No, this is still going on. I just caught my VPS stuck with this same problem.
The provider gave us all a RAM upgrade for free not too long ago. It's up to 1.3 GB of RAM, but that still isn't a lot for a ZFS equipped server. I have a single zvol for swap, but things like building a JVM from the ports will easily wind up getting it stuck this way. |
|
#10
|
||||
|
||||
|
You are using ZFS on root on a very low memory system. (less significant in this case)
You are using ZFS on a virtualized vdev (more significant in this case) Backup and reinstall using UFS or UFS+J. If you want to implement a ZFS on root then get a dedicated server.
__________________
Powered by BareBSD |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Swap options for reliable ZFS system | carlton_draught | Installing & Upgrading | 0 | November 4th, 2010 05:48 |
| [Solved] Major ZFS Problems | the_sadman | System Hardware | 4 | August 8th, 2010 21:18 |
| Using a swap file and swap partition on same disk. | atarahas | General | 4 | April 22nd, 2010 20:51 |
| SWAP File or SWAP Partition - VMWare VPS | NuLL3rr0r | General | 9 | March 27th, 2010 07:32 |
| zvol swap and fstab | wonslung | General | 9 | June 19th, 2009 17:36 |