{"id":18806746,"url":"https://github.com/lefred/linux-ftools","last_synced_at":"2025-10-17T21:51:27.578Z","repository":{"id":29731163,"uuid":"33274428","full_name":"lefred/linux-ftools","owner":"lefred","description":"Automatically exported from code.google.com/p/linux-ftools","archived":false,"fork":false,"pushed_at":"2015-04-01T21:41:02.000Z","size":416,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T01:09:37.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lefred.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-01T21:38:18.000Z","updated_at":"2015-04-01T21:39:15.000Z","dependencies_parsed_at":"2022-07-24T16:32:04.135Z","dependency_job_id":null,"html_url":"https://github.com/lefred/linux-ftools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lefred/linux-ftools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Flinux-ftools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Flinux-ftools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Flinux-ftools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Flinux-ftools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lefred","download_url":"https://codeload.github.com/lefred/linux-ftools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Flinux-ftools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261624959,"owners_count":23186118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T22:49:27.194Z","updated_at":"2025-10-17T21:51:22.541Z","avatar_url":"https://github.com/lefred.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"These are tools designed for working with modern linux system calls including, mincore, fallocate, fadvise, etc.\n\nWe designed these primarily to work in high performance environments to determine information about the running kernel, improve system performance, and debug performance problems.\n\n= fincore =\n\n{{{\nfincore [options] files...\n\n  --pages=false      Do not print pages\n  --summarize        When comparing multiple files, print a summary report\n  --only-cached      Only print stats for files that are actually in cache.\n\nroot@xxxxxx:/var/lib/mysql/blogindex# fincore --pages=false --summarize --only-cached * \nstats for CLUSTER_LOG_2010_05_21.MYI: file size=93840384 , total pages=22910 , cached pages=1 , cached size=4096, cached perc=0.004365 \nstats for CLUSTER_LOG_2010_05_22.MYI: file size=417792 , total pages=102 , cached pages=1 , cached size=4096, cached perc=0.980392 \nstats for CLUSTER_LOG_2010_05_23.MYI: file size=826368 , total pages=201 , cached pages=1 , cached size=4096, cached perc=0.497512 \nstats for CLUSTER_LOG_2010_05_24.MYI: file size=192512 , total pages=47 , cached pages=1 , cached size=4096, cached perc=2.127660 \nstats for CLUSTER_LOG_2010_06_03.MYI: file size=345088 , total pages=84 , cached pages=43 , cached size=176128, cached perc=51.190476 \nstats for CLUSTER_LOG_2010_06_04.MYD: file size=1478552 , total pages=360 , cached pages=97 , cached size=397312, cached perc=26.944444 \nstats for CLUSTER_LOG_2010_06_04.MYI: file size=205824 , total pages=50 , cached pages=29 , cached size=118784, cached perc=58.000000 \nstats for COMMENT_CONTENT_2010_06_03.MYI: file size=100051968 , total pages=24426 , cached pages=10253 , cached size=41996288, cached perc=41.975764 \nstats for COMMENT_CONTENT_2010_06_04.MYD: file size=716369644 , total pages=174894 , cached pages=79821 , cached size=326946816, cached perc=45.639645 \nstats for COMMENT_CONTENT_2010_06_04.MYI: file size=56832000 , total pages=13875 , cached pages=5365 , cached size=21975040, cached perc=38.666667 \nstats for FEED_CONTENT_2010_06_03.MYI: file size=1001518080 , total pages=244511 , cached pages=98975 , cached size=405401600, cached perc=40.478751 \nstats for FEED_CONTENT_2010_06_04.MYD: file size=9206385684 , total pages=2247652 , cached pages=1018661 , cached size=4172435456, cached perc=45.321117 \nstats for FEED_CONTENT_2010_06_04.MYI: file size=638005248 , total pages=155763 , cached pages=52912 , cached size=216727552, cached perc=33.969556 \nstats for FEED_CONTENT_2010_06_04.frm: file size=9840 , total pages=2 , cached pages=3 , cached size=12288, cached perc=150.000000 \nstats for PERMALINK_CONTENT_2010_06_03.MYI: file size=1035290624 , total pages=252756 , cached pages=108563 , cached size=444674048, cached perc=42.951700 \nstats for PERMALINK_CONTENT_2010_06_04.MYD: file size=55619712720 , total pages=13579031 , cached pages=6590322 , cached size=26993958912, cached perc=48.533080 \nstats for PERMALINK_CONTENT_2010_06_04.MYI: file size=659397632 , total pages=160985 , cached pages=54304 , cached size=222429184, cached perc=33.732335 \nstats for PERMALINK_CONTENT_2010_06_04.frm: file size=10156 , total pages=2 , cached pages=3 , cached size=12288, cached perc=150.000000 \n---\ntotal cached size: 32847278080\n}}}\n\n= fadvise =\n\n{{{\n\nSYNTAX: filename mode [offset] [,length]\nWhere mode can be:\n\n  POSIX_FADV_NORMAL       No further special treatment.  \n  POSIX_FADV_RANDOM       Expect random page references.  \n  POSIX_FADV_SEQUENTIAL   Expect sequential page references.  \n  POSIX_FADV_WILLNEED     Will need these pages.  \n  POSIX_FADV_DONTNEED     Dont need these pages.  \n  POSIX_FADV_NOREUSE      Data will be accessed once.  \n\nAllows an application to to tell the kernel how it expects to use a file handle,\nso that the kernel can choose appropriate read-ahead and caching techniques for\naccess to the corresponding file. This is similar to the POSIX version of the\nmadvise system call, but for file access instead of memory access. The\nsys_fadvise64() function is obsolete and corresponds to a broken glibc API,\nsys_fadvise64_64() is the fixed version. The following are the values for the\nadvice parameter:\n\nFADV_NORMAL\n\nNo special treatment.\n\nFADV_RANDOM\n\nExpect page references in random order.\n\nFADV_SEQUENTIAL\n\nExpect page references in sequential order.\n\nFADV_WILLNEED\n\nExpect access in the near future.\n\nFADV_DONTNEED\n\nDo not expect access in the near future. Subsequent access of pages in this\nrange will succeed, but will result either in reloading of the memory contents\nfrom the underlying mapped file or zero-fill-in-demand pages for mappings\nwithout an underlying file.\n\nFADV_NOREUSE\n\nAccess data only once.\n}}}\n\n= fallocate =\n\n{{{\nSYNTAX: fallocate file length\n\nfallocate() allows the caller to directly manipulate the allocated disk space\nfor the file referred to by fd for the byte range starting at offset and\ncontinuing for len bytes.\n\nThe mode argument determines the operation to be performed on the given\nrange. Currently only one flag is supported for mode:\n\nFALLOC_FL_KEEP_SIZE\n\nThis flag allocates and initializes to zero the disk space within the range\nspecified by offset and len. After a successful call, subsequent writes into\nthis range are guaranteed not to fail because of lack of disk\nspace. Preallocating zeroed blocks beyond the end of the file is useful for\noptimizing append workloads. Preallocating blocks does not change the file size\n(as reported by stat(2)) even if it is less than offset+len.\n\nIf FALLOC_FL_KEEP_SIZE flag is not specified in mode, the default behavior is\nalmost same as when this flag is specified. The only difference is that on\nsuccess, the file size will be changed if offset + len is greater than the file\nsize. This default behavior closely resembles the behavior of the\nposix_fallocate(3) library function, and is intended as a method of optimally\nimplementing that function.\n\nBecause allocation is done in block size chunks, fallocate() may allocate a\nlarger range than that which was specified.\n}}}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefred%2Flinux-ftools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flefred%2Flinux-ftools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefred%2Flinux-ftools/lists"}