FreeBSD

共692篇文章。

说一个笑话,大家一乐

Life

起初,他们只是不支持FreeBSD/Linux,我有Windows远程桌面,我没投诉;
到后来,他们不允许Windows远程桌面,我可以本地访问一台64位的Windows 2003 Server,勉强投诉两句,暂时也忍了;
再后来,他们又写了不支持64位Windows 2003 Server的所谓「安全」驱动,我拼命投诉,可是他们不理我了,更有人说,我是「小众系统」,正如一开始人们说FreeBSD/Linux两种系统一样。

阅读全文…:说一个笑话,大家一乐(本文约285字,阅读大致需要1分钟)

ULE 2.0 hits -HEAD

Kernel

📜 历史文件已不具备现实意义

本文记录了2007年1月FreeBSD -CURRENT合入ULE 2.0调度器时的情形,文中对SCHED_ULE及sched_core的讨论仅反映当时的历史背景。

Today, Jeff Roberson has committed his version 2.0 ULE scheduler. This new version has addressed several design issues as well as several bugs.

The new scheduler has adopted a circular queue, instead of the double-queue structure which is also found in the Linux O(1)O(1) scheduler. The latter has lead to difficulty implementing nice correctly.

For uniprocessor case, ULE is now faster.

MP algorithm has been simplified a bit.

A lot of bugfixes, etc.

To quote the original commit message:

ULE 2.0:

  • Remove the double queue mechanism for timeshare threads. It was slow due to excess cache lines in play, caused suboptimal scheduling behavior with niced and other non-interactive processes, complicated priority lending, etc.
  • Use a circular queue with a floating starting index for timeshare threads. Enforces fairness by moving the insertion point closer to threads with worse priorities over time.
  • Give interactive timeshare threads real-time user-space priorities and place them on the realtime/ithd queue.
  • Select non-interactive timeshare thread priorities based on their cpu utilization over the last 10 seconds combined with the nice value. This gives us more sane priorities and behavior in a loaded system as compared to the old method of using the interactivity score. The interactive score quickly hit a ceiling if threads were non-interactive and penalized new hog threads.
  • Use one slice size for all threads. The slice is not currently dynamically set to adjust scheduling behavior of different threads.
  • Add some new sysctls for scheduling parameters.

Bug fixes/Clean up:

  • Fix zeroing of td_sched after initialization in sched_fork_thread() caused by recent ksegrp removal.
  • Fix KSE interactivity issues related to frequent forking and exiting of kse threads. We simply disable the penalty for thread creation and exit for kse threads.
  • Cleanup the cpu estimator by using tickincr here as well. Keep ticks and ltick/ftick in the same frequency. Previously ticks were stathz and others were hz.
  • Lots of new and updated comments.
  • Many many others.

Tested on: up x86/amd64, 8way amd64.

阅读全文…:ULE 2.0 hits -HEAD(本文约613字,阅读大致需要2分钟)

如何:为 FreeBSD UFS2 文件系统恢复受损的主超级块

Kernel

🚨 警告

本文介绍的方法假定读者对UFS文件系统以及FreeBSD的日常操作相当熟悉;请勿轻易执行本文介绍的操作,这些操作可能导致fsck_ffs(8)无法修正的严重问题。由于在此本人已明确告知读者这一风险,据此,对于由于执行这些操作导致的任何数据损失,本人明示不承担任何责任。

阅读全文…:如何:为 FreeBSD UFS2 文件系统恢复受损的主超级块(本文约1922字,阅读大致需要4分钟)
搜索文章…(按ESC退出)