How does Tor change circuits?
Tor always serves a whole TCP connection over a single circuit otherwise a changed exit relay (new source IP address seen from the Internet) in a new circuit would cause the existing TCP connection to break.
By default Tor client stops using a circuit 10 minutes after its first use but existing connections will still be routed through their old circuits. It is explained here: How can I prevent my different activities carried out over Tor being linked?
– https://tor.stackexchange.com/questions/814/can-tor-change-circuit-while-accessing-a-webpage
The very first line cpu
aggregates the numbers in all of the other cpuN
lines.
These numbers identify the amount of time the CPU has spent performing different kinds of work. Time units are in USER_HZ or Jiffies (typically hundredths of a second).
The meanings of the columns are as follows, from left to right:
- 1st column:
user
= normal processes executing in user mode
- 2nd column:
nice
= niced processes executing in user mode
- 3rd column:
system
= processes executing in kernel mode
- 4th column:
idle
= twiddling thumbs
- 5th column:
iowait
= waiting for I/O to complete
- 6th column:
irq
= servicing interrupts
- 7th column:
softirq
= servicing softirqs
- Since Linux 2.6.11, there is an 8th column called
steal
- counts the ticks spent executing other virtual hosts (in virtualised environments like Xen)
- Since Linux 2.6.24, there is a 9th column called
guest
- counts the time spent running a virtual CPU for guest operating systems under the control of the Linux kernel
- Since Linux 2.6.33, there is a 10th column called
guest_nice
- Time spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel).
– How to read the Linux /proc/stat
file
The Grafana Agent is designed for easy installation and updates. It uses a subset of Prometheus code features to interact with hosted metrics, specifically:
- Service discovery
- Scraping
- Write ahead log (WAL)
- Remote writing
- Along with this, the agent typically uses less memory than scraping metrics using Prometheus.
This optimization of Prometheus for remote write and resource reduction in the agent has resulted in some trade-offs:
- Metrics are pushed rather than pulled
- You can't query the agent directly; you can only query metrics from the remote write storage
- Recording rules are not supported
- Alerts from the agent are not supported
– https://grafana.com/docs/grafana-cloud/fundamentals/gs-visualize/
stuff about MobilityDB:
There are six built-in temporal types, namely tbool
, tint
, tfloat
, ttext
, tgeompoint
, and tgeogpoint
, which are, respectively, based on the base types bool
, int
, float
, text
, geometry
, and
geography
(the last two types restricted to 2D or 3D points with Z dimension).
Temporal types based on discrete base types, that is the tbool
, tint
, or ttext
evolve necesssarily in a stepwise manner. On the other hand, temporal types based on continuous base types, that is tfloat
, tgeompoint
, or tgeogpoint
may evolve in a stepwise or linear manner.
The subtype of a temporal value states the temporal extent at which the evolution of values is recorded. Temporal values come in four subtypes, namely, instant, instant set, sequence, and sequence set.
A temporal value of instant subtype (briefly, an instant value) represents the value at a time instant, for example
SELECT tfloat '17@2018-01-01 08:00:00';
A temporal value of instant set subtype (briefly, an instant set value) represents the evolution of the value at a set of time instants, where the values between these instants are unknown. An example is as follows:
SELECT tfloat '{17@2018-01-01 08:00:00, 17.5@2018-01-01 08:05:00, 18@2018-01-01 08:10:00}';
A temporal value of sequence subtype (briefly, a sequence value) represents the evolution of the value during a sequence of time instants, where the values between these instants are interpolated […]. An example is as follows:
SELECT tint '(10@2018-01-01 08:00:00, 20@2018-01-01 08:05:00, 15@2018-01-01 08:10:00]';
As can be seen, a sequence value has a lower and an upper bound that can be inclusive (represented by [
and ]
) or exclusive (represented by (
and )
). […]
Finally, a temporal value of sequence set subtype (briefly, a sequence set value) represents the evolution of the value at a set of sequences, where the values between these sequences are unknown. An example is as follows:
SELECT tfloat '{[17@2018-01-01 08:00:00, 17.5@2018-01-01 08:05:00],
[18@2018-01-01 08:10:00, 18@2018-01-01 08:15:00]}';
Temporal values with instant or sequence subtype are called temporal unit values, while temporal values with instant set or sequence set subtype are called temporal set values.
Temporal types support type modifiers (or typmod in PostgreSQL terminology), which specify additional information for a column definition. For example, in the following table definition:
CREATE TABLE Department(DeptNo integer, DeptName varchar(25), NoEmps tint(Sequence));
the type modifier for the type varchar
is the value 25
, which indicates the maximum length of the values of the column, while the type modifier for the type tint
is the string Sequence
, which restricts the subtype of the values of the column to be sequences. In the case of temporal alphanumeric types (that is, tbool
, tint
, tfloat
, and ttext
), the possible values for the type modifier are Instant
, InstantSet
, Sequence
, and SequenceSet
. If no type modifier is specified for a column, values of any subtype are allowed.
On the other hand, in the case of temporal point types (that is, tgeompoint
or tgeogpoint
) the type modifier may be used to specify specify the subtype, the dimensionality, and/or the spatial reference identifier (SRID). For example, in the following table definition:
CREATE TABLE Flight(FlightNo integer, Route tgeogpoint(Sequence, PointZ, 4326));
the type modifier for the type tgeogpoint
is composed of three values, the first one indicating the subtype as above, the second one the spatial type of the geographies composing the temporal point, and the last one the SRID of the composing geographies. For temporal points, the possible values for the first argument of the type modifier are as above, those for the second argument are either Point
or PointZ
, and those for the third argument are valid SRIDs. All the three arguments are optional and if any of them is not specified for a column, values of any subtype, dimensionality, and/or SRID are allowed.
Each temporal type is associated to another type, referred to as its bounding box, which represent its extent in the value and/or the time dimension. The bounding box of the various temporal types are as follows:
- The
period
type for the tbool
and ttext
types, where only the temporal extent is considered.
- A
tbox
(temporal box) type for the tint
and tfloat
types, where the value extent is defined in the X dimension and the temporal extent in the T dimension.
- A
stbox
(spatiotemporal box) type for the tgeompoint
and tgeogpoint
types, where the spatial extent is defined in the X, Y, and Z dimensions, and the temporal extent in the T dimension.
Chapter 3. Temporal Types – MobilityDB documentation
As a convenience, the pipe &|
redirects both stdout and stderr to the same process. Note that this is different from bash, which uses |&
.
– fish-shell introduction – Redirects
PostgreSQL query planning node types:
- Scan Types
- Sequential Scan
- Basically a brute-force retrieval from disk
- Scans the whole table
- Fast for small tables
- Index Scan
- Scan all/some rows in an index; look up rows in heap
- Causes random seek, which can be costly for old-school spindle-based disks
- Faster than a Sequential Scan when extracting a small number of rows for large tables
- Index Only Scan
- Scan all/some rows in index
- No need to lookup rows in the table because the values we want are already stored in the index itself
- Bitmap Heap Scan
- Scan index, building a bitmap of pages to visit
- Then, look up only relevant pages in the table for desired rows
- Join Types
- Nested Loops
- For each row in the outer table, scan for matching rows in the inner table
- Fast to start, best for small tables
- Merge Join
- Zipper-operation on sorted data sets
- Good for large tables
- High startup cost if an additional sort is required
- Hash Join
- Build hash of inner table values, scan outer table for matches
- Only usable for equality conditions
- High startup cost, but fast execution
https://www.enterprisedb.com/blog/postgresql-query-optimization-performance-tuning-with-explain-analyze
A single point in time can be represented by concatenating a complete date expression, the letter T
as a delimiter, and a valid time expression. For example, 2007-04-05T14:30
. In ISO 8601:2004 it was permitted to omit the T
character by mutual agreement as in 200704051430
, but this provision was removed in ISO 8601-1:2019. Separating date and time parts with other characters such as space is not allowed in ISO 8601, but allowed in its profile RFC 3339.
– ISO 8601: Combined date and time representations
fish --private
:
-P
or --private
enables private mode, so fish will not access old or store new history.