Skip to content
GitLab
Next
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • GitLab.orgGitLab.org
  • gitalygitaly
  • Issues
  • #1565

Language detection causing excessive CPU usage

It was brought to our attention by a customer (https://gitlab.zendesk.com/agent/tickets/115860 internal-only link) that the git-linguist process is consuming more CPU than expected. Specifically, it is processing a large ".ktr" xml file, taking longer than 40 minutes, and consuming 100% of the CPU.

I'd like to recommend that we could implement some sort of nice usage or a timeout so this is less likely.

It seems performance of language detection has been discussed before:

  • https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19480
  • !751 (closed)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking