Docsity

Understanding Filesystems, Databases, and Database Management Systems in Tech Management, Diapositivas de Informática y Tecnologías de la Información

Vista previa parcial del texto

¡Descarga Understanding Filesystems, Databases, and Database Management Systems in Tech Management y más Diapositivas en PDF de Informática y Tecnologías de la Información solo en Docsity!

Bachelor in Management and Technology (November 9th, 2020)

• Filesystems (review)

• Databases and Database Management Systems

• Impact

FUSE = Filesystem in User Space

Software interface present in some operating systems (mainly Unix-like), that

allows non-privileged users create or interact with file systems without having to

edit nor compile the operating system kernel code.

FUSE acts like a proxy to the main kernel interfaces in charge of managing the

storage mediums.

  • Creation of own, efficient and customized filesystems : defining own filesystem may be beneficial if you need specific features not provided by any of the existing ones, i.e. - Specific encryption schemes - Resiliency and data redundancy - On-the-fly deduplication (maybe based on hash meta-info? ;) ) - Real time compression - Anything you can imagine!!!
  • Development of modules to interact with existing open/closed source filesystems, and/or to enhance the existing modules related to open source filesystems. - First modules created to access Microsoft NTFS from Linux and MacOS X - Rclone mounts - EncFS, GlusterFS, GmailFS, GVfs, Sector File System, SSHFS, WikipediaFS…
  • Security / access permissions
  • Metainformation ( from file size, creation date, creation user, until file hash )
  • Symbolic linking ( link to file from another location without consuming additional

space )

  • Dynamic growing ( depends on the filesystem. I.e. LVM )
  • Disk quotas ( depends on the filesystem. I.e. NTFS, EXT3, 4… )
  • Resiliency and integrity (i.e. by copying the table of contents in other parts of the

partition, and by adding a “ journaling ” system)

Minimum size that the filesystem or physical device can handle in a single read/write operation. Variable. Usually from 512 bytes to 4 Kb ( depending on storage unit or filesystem capabilities ). Bigger block sizes → better performance when operating with big files , but waste of space with smaller files. FRAGMENTATION phenomena → performance issues* (some filesystems include mechanisms to prevent fragmentation, as EXT4). *More info at: https://www.differencebetween.com/difference-between-internal-and-vs-external-fragmentation/ Internal fragmentation External fragmentation X New program arrives, bigger than biggest free consecutive space (solution: it has to be splitted to fit among free space gaps)

Unix-like (MacOS, GNU/Linux…) “SEPARATOR” “SEPARATOR” … “SEPARATOR” <FILE_NAME> I.e. /home/LPG/Desktop/20201109-BIT-Slides.pptx Where: “SEPARATOR” = In Unix-like systems, the file-directory separator is the slash character: / = home , LPG and Desktop (special files that allow to contain/group other files) <FILE_NAME> = 20201109 - BIT-Slides.pptx (as before, the last element, or the file itself) As you can see, Unix-like OSes do not have drive letters. Everything depends on root (the first separator: / ). Partitions can be mounted in sub-directories using specific commands (as “ mount ”), and physical and special devices can be accessed through special files that actually are not files but logical descriptors of the physical device (i.e. /dev/sda1 , or /dev/null , /dev/random )

Computer resource for recording data discretely in a computer storage device (term from 1940) Abstraction of information. Information encoded.

  • Organized into an array of bytes :
  • Format defined by its content, since a file is just a data container.
  • Most types also allocate several bytes for metadata to carry additional information about the

file contents (i.e. digital pictures → EXIF )

1 0 1 1 1 0 0 1 1 0 1 1 1 1 … 1 Holidays.jpg

Usually you use self contained DB for desktop or mobile applications where usually just one user/app needs to access the stored information. Usually you use DBMS related databases when you have to handle big amounts of information (i.e. BigData → MongoDB), and when there are multiple apps/users are accessing at the same time to the stored information. DBMS also provide extended features, as network connectivity (access from the local network or from the Internet), advanced user management (permissions, security) and also tend to be optimized and very efficient. In contrast, they consume more computational resources than self contained databases.

Notice that:

  • Almost every smartphone app includes a self contained relational database (Android → SQLite).
  • Almost every Cloud Service that handles data rely on DBMSs (MariaDB, Oracle, MongoDB…)

They are based on the relational model of data (70’s). This model has the following basic entities:

  • Tables
    • The collections that organize data , in columns and rows. In other words, set of entities of the same type (i.e. customers, car models…).
  • Columns (per table)
    • Specific attributes for the entity represented in the table. A specific column or set of columns can be the unique key that identify each row unequivocally.
  • Rows
    • Also called records or tuples , are the set of attributes (columns) that represent an entity in the table.

Example: User_ID Name Surname Age 10034578 Nikola Tesla 161 10034579 Darwin Watterson 12 10034593 Jessie Pinkman 31