We consider a bi-criteria generalization of the pathwidth problem, where, for given integers k, l and a graph G, we ask whether there exists a path decomposition P of G such that the width of P is at most k and the number of bags in P, i.e., the length of P, is at most l.We provide a complete complexity classification of the problem in terms of k and l for general graphs. Contrary to the original pathwidth problem, which is fixed-parameter tractable with respect to k, we prove that the generalized problem is NP-complete for any fixed k ≥ 4, and is also NP-complete for any fixed l ≥ 2. On the other hand, we give a polynomial-time algorithm that, for any (possibly disconnected) graph G and integers k ≤ 3 and l > 0, constructs a path decomposition of width at most k and length at most l, if any exists.As a by-product, we obtain an almost complete classification of the problem in terms of k and l for connected graphs. Namely, the problem is NP-complete for any fixed k ≥ 5 and it is polynomial-time for any k ≤ 3. This leaves open the case k = 4 for connected graphs.In the optimization problem MLPD (Minimum Length Path Decomposition) the goal is to compute, for a given simple graph G and an integer k, a minimum length path decomposition P of G such that width(P) ≤ k. In the corresponding decision problem LCPD (Length-Constrained Path Decomposition), a simple graph G and integers k, l are given, and we ask whether there exists a path decomposition P of G such that width(P) ≤ k and len(P) ≤ l.Finally, in the optimization problem MLPD k the goal is to compute, for a given simple graph G, a minimum length path decomposition P of G such that width(P) ≤ k. The corresponding decision problem LCPD k the input consists of a simple graph G and an integer l and the question is whether there exists a path decomposition P of G such that width(P) ≤ k and len(P) ≤ l.Note that the difference between MLPD and MLPD k (and, similarly, LCPD and LCPD k ) is that in the former k is a part of the input while in the latter the value of k is fixed.2 MLPD k is NP-hard for k ≥ 4In this section we prove that the problem of finding a minimum length path decomposition of width k ≥ 4 is NP-hard. To that end it suffices to show that the decision problem LCPD 4 is NP-complete, since this implies that LCPD k is NP-complete for all k ≥ 4 which follows from the following lemma.Lemma 2.1. Let k ≥ 1. If LCPD k−1 is NP-complete for general graphs, then LCPD k is NPcomplete for connected graphs.