summaryrefslogtreecommitdiffstats
path: root/sys/cddl
Commit message (Collapse)AuthorAgeFilesLines
* MFp4: Start DNLC after desiredvnodes variable is initialized.pjd2007-04-151-2/+2
| | | | | | | Before this change if zfs.ko was loaded by the loader, DNLC was automatically disabled. Reported by: Zephiris <zephiris@gmail.com>
* Fix RAID-Z resilvering.pjd2007-04-141-2/+16
| | | | Obtained from: OpenSolaris
* MFp4: Hmm, it seems to work now.pjd2007-04-141-8/+1
|
* MFp4: Use max_ncpus, which is used in other places in the code.pjd2007-04-141-1/+1
|
* MFp4: Add more debug, so we can see if zpool.cache was loaded or why itpjd2007-04-141-3/+11
| | | | wasn't loaded.
* MFp4: Allow to tune vfs.zfs.debug from loader.conf.pjd2007-04-141-0/+1
|
* MFp4: - Allow to tune number of spa_zio_* threads.pjd2007-04-141-7/+17
| | | | | | | - Reduce default number of spa_zio_* threads to N*spa_zio_issue plus N*spa_zio_intr threads per ZIO type, where N is the number of CPUs. - Put ZIO type number in thread's name.
* Fix overflow, which was causing endless loops when 32bit machine had morepjd2007-04-132-3/+3
| | | | | | | | | | than 2GB of RAM. This was because our physmem is long and 'physmem*PAGESIZE' can be negative for more than 2GB of memory. Reported by: Andrey V. Elsukov <bu7cher@yandex.ru> It is not yet tested by Andrey, so there can be other problems, but this was definiately a bug, so I'm committing a fix now.
* Fix vnodes starvation caused by DNLC (ZFS name cache):pjd2007-04-131-1/+20
| | | | | | | | - Tune number of namecache entires better (based on desiredvnodes). - Handle vfs_lowvnodes event by releasing requested number of name cache entries, but no less than 5%. Reported by: simokawa
* MFp4: Synchronize with vendor (mostly 'zfs rename -r').pjd2007-04-126-20/+142
|
* MFp4: Bring back comments.pjd2007-04-122-179/+179
| | | | Requested by: jhb
* strchr() and strrchr() are already present in the kernel, but with lesswkoszek2007-04-102-33/+2
| | | | | | | | | | | | | popular names. Hence: - comment current index() and rindex() functions, as these serve the same functionality as, respectively, strchr() and strrchr() from userland; - add inlined version of strchr() and strrchr(), as we tend to use them more often; - remove str[r]chr() definitions from ZFS code; Reviewed by: pjd Approved by: cognet (mentor)
* MFp4: Allow to set zfs_recover via vfs.zfs.recover from /boot/loader.conf.pjd2007-04-101-0/+4
|
* MFp4: Hide under '#ifdef _KERNEL' only what's really needed.pjd2007-04-101-6/+2
|
* Try to stabilize ZFS with regard to memory consumption:pjd2007-04-104-24/+61
| | | | | | | | | | | | | | | | | | - Allow to shrink ARC down to 16MB (instead of 64MB). - Set arc_max to 1/2 of kmem_map by default. - Start freeing things earlier when low memory situation is detected. - Serialize execution of arc_lowmem(). I decided to setup minimum ZFS memory requirements to 512MB of RAM and 256MB of kmem_map size. If there is less RAM or kmem_map, a warning will be printed. World is cruel, be no better. In other words: modern file system requires modern hardware:) From ZFS administration guide: "Currently the minimum amount of memory recommended to install a Solaris system is 512 Mbytes. However, for good ZFS performance, at least one Gbyte or more of memory is recommended."
* Reduce diff against vendor - we have now stronger check for "mutex alreadypjd2007-04-101-2/+2
| | | | initialized", so we can go back to kmem_alloc().
* Remove unused #define.pjd2007-04-091-2/+0
|
* Instead of detecting if lock is already initialized based on standard 1 bitpjd2007-04-093-2/+55
| | | | | | | check, use more accurate 13 bits check. We had too many false-positives with the standard check. Reported by: mlaier
* We don't have to wait for the root file system to be mounted anymore, now thatpjd2007-04-091-2/+0
| | | | kobj KPI supports operating on files loaded by the loader.
* Drop the Giant lock before calling zfs_domount(), which is held whenpjd2007-04-091-1/+4
| | | | mounting root file system.
* Move zpool.cache from /etc/zfs/ to /boot/zfs/, so we can keep it onpjd2007-04-081-1/+1
| | | | dedicated /boot/ file system and use ZFS for the root file system.
* Extend kobj compatibility KPI to support operating on files before andpjd2007-04-082-16/+102
| | | | | after the root file system is mounted. This is one of the changes that will allow to put root file system on ZFS.
* MFp4: Synchronize with recent OpenSolaris changes.pjd2007-04-0810-12/+201
|
* - Use 'name=value' so it can be properly recognized by devd(8).pjd2007-04-081-32/+30
| | | | - Use only subclass as devd's type.
* Take vnode pointer and hold it under znode lock, so we won't race withpjd2007-04-081-2/+3
| | | | | zfs_reclaim(). This may or may not fix problem reported by kris, but it's definiatelly better that way.
* Move atomic.S files to directories that better fit OpenSolaris directorypjd2007-04-072-10/+2
| | | | layout.
* Fix libzpool compilation.pjd2007-04-071-0/+4
| | | | Reported by: des
* Limit the number of system taskq threads to the number of CPUs.pjd2007-04-071-1/+1
| | | | | | They are only used when there is a need for reducing namecache. Observed by: kris, csjp
* Fix some type mismatches.des2007-04-071-3/+3
| | | | Reviewed by: pjd@
* Allow to tune maximum and minimum memory used by ARC.pjd2007-04-071-5/+13
|
* Add missing mutex_init() which was causing assertion panic when on clonepjd2007-04-071-0/+1
| | | | | | destruction. Reported by: kris
* Please welcome ZFS - The last word in file systems.pjd2007-04-06233-0/+92377
ZFS file system was ported from OpenSolaris operating system. The code in under CDDL license. I'd like to thank all SUN developers that created this great piece of software. Supported by: Wheel LTD (http://www.wheel.pl/) Supported by: The FreeBSD Foundation (http://www.freebsdfoundation.org/) Supported by: Sentex (http://www.sentex.net/)
OpenPOWER on IntegriCloud