- Nov 2024
-
elixir.bootlin.com elixir.bootlin.com
-
#ifdef CONFIG_STACK_GROWSUP return vma_lookup(mm, addr); #else static volatile unsigned long next_warn; struct vm_area_struct *vma; unsigned long now, next; vma = find_vma(mm, addr); if (!vma || (addr >= vma->vm_start)) return vma; /* Only warn for half-way relevant accesses */ if (!(vma->vm_flags & VM_GROWSDOWN)) return NULL; if (vma->vm_start - addr > 65536) return NULL; /* Let's not warn more than once an hour.. */ now = jiffies; next = next_warn; if (next && time_before(now, next)) return NULL; next_warn = now + 60*60*HZ; /* Let people know things may have changed. */ pr_warn("GUP no longer grows the stack in %s (%d): %lx-%lx (%lx)\n", current->comm, task_pid_nr(current), vma->vm_start, vma->vm_end, addr); dump_stack(); return NULL;
helper func to lookup vma(virtual mem area) that warns per hour about half way relevant acc and changes in stack
-
- Oct 2024
-
elixir.bootlin.com elixir.bootlin.com
-
if (unlikely(--latency_ration < 0)) { cond_resched(); latency_ration = LATENCY_LIMIT; scanned_many = true; } if (swap_offset_available_and_locked(si, offset)) goto checks; } offset = si->lowest_bit; while (offset < scan_base) { if (unlikely(--latency_ration < 0)) { cond_resched(); latency_ration = LATENCY_LIMIT; scanned_many = true; }
Here, a policy decision is made to fully replenish the latency_ration with the LATENCY_LIMIT and then yield back to the scheduler if we've exhausted it. This makes it so that when scheduled again, we have the full LATENCY_LIMIT to do a scan. Alternative policies could grow/shrink this to find a better heuristic instead of fully replenishing each time.
Marked config/value as awe're replacing latency_ration with a compiletime-defined limit.
-
- Apr 2024
-
docs.rangelandsgateway.org docs.rangelandsgateway.org
-
In summary, public and private rangeland resources provide a wide variety of EGS. Additionally,spiritual values are vital to the well-being of ranching operations, surrounding communities, and the nation as a whole. Society is placing multiple demands on the nation’s natural resources,and it is extremely important that NRCS be able to provide resource data and technical assistance at local and national levels. (4) Rangelands are in constant jeopardy, either from misuse or conversion to other uses. Holechek et al. (2004) andHolechek (2013) states that in the next 100 years, up to 40percentof U.S. rangelands could be converted and lost to other uses. Land-use shifts from grazing use to urbanization will be much greater in areas of more rapid population increases and associated appreciating land values. Projections supporting forage demand suggestthat changes in land use will decrease the amount of land available for grazing to a greater extent in the Pacific Coast and Rocky Mountains,compared to the North or South Assessment Regions (Mitchell 2000).(5) As society attempts to satisfy multiple demands with limited resources, many ranching and farming operations seek to expand operations for multiple goods and services beyond traditional cattle production. Some diversifiedenterprises may include the following: (i) Management to enhance wildlife abundance and diversityfor fishing, hunting and non-hunting activities(ii) Maintaining habitat for rare plants(iii) Accommodatingnature enthusiasts, bird watchers, and amateur botanists. (6) Planning, evaluation, and communication are necessary steps (consult conservation planning steps) prior to initiating any new rangeland EGS-based enterprises.
-
- Oct 2020
-
github.com github.com
-
By default all content inside template strings is escaped. This is great for strings, but not ideal if you want to insert HTML that's been returned from another function (for example: a markdown renderer). Use nanohtml/raw for to interpolate HTML directly.
-
- Feb 2020
-
marxdown.github.io marxdown.github.io
-
The coat is a use value that satisfies a particular want
Marx: "Yesterday I pawned a coat dating back to my Liverpool days in order to buy writing paper" (Karl Marx and Frederick Engels, Collected Works, vol. 38 [1852-55]: 221).
On the significance of Marx's coat, see Peter Stallybrass, “Marx’s Coat,” in Border Fetishisms: Material Objects in Unstable Spaces, ed. Patricia Spyer (New York: Routledge, 1998): 183–207. [PDF].
-
Section 1. The Two Factors of a Commodity, Use-Value and Value
Marx's analysis of a capitalist system begins by postulating that it's fundamentally composed of units called commodities.
In the capitalist system commodities have two features.
1. They are produced
2. They are produced by capitalists
Capitalists produce commodities by employing workers to produce them.
In this section, Marx begins his analysis of the first feature of the capitalist system (viz. that it is commodity producing). Workers and capitalists will not appear in Marx's analysis for several more chapters.
-
A commodity, such as iron, corn, or a diamond, is therefore, so far as it is a material thing, a use value, something useful
What commodities are thought to be useful for or not is irrelevant to Marx at this very early stage of his analysis, even from a moral point of view. Diamonds satisfy a need in some societies at specific times and places the same as corn or iron.
-